Skip to content

Commit

Permalink
README: Fix relative path of winit_app.rs module
Browse files Browse the repository at this point in the history
After originally seeing complaints on `nightly`, we now see them on
`stable` (but no longer on `nightly`): either some regression slipped
in, or `rustc` understands that any relative path references inside
content from `include_str!()` are supposed to be relative to the file
that is being included, not the file that it is being included in
(i.e. in this case relative to `./README.md`, not to `src/lib.rs`
 which includes `../README.md`).
  • Loading branch information
MarijnS95 committed Dec 16, 2024
1 parent 94f6d7d commit 2ba152c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ use winit::event::{Event, WindowEvent};
use winit::event_loop::{ControlFlow, EventLoop};
use winit::window::Window;
#[path = "../examples/utils/winit_app.rs"]
#[path = "examples/utils/winit_app.rs"]
mod winit_app;
fn main() {
Expand Down

0 comments on commit 2ba152c

Please sign in to comment.