Hands-on Rust: Windows compatibility issue in `main.rs` (page 97)

The line .with_resource_path("resources/") should be .with_resource_path("resources"). The trailing path separator should be left out.

Alternatively, this line can be omitted because the terminal builder uses “resources” as the default.

1 Like

Thank you! I’ve added this to the bug-tracker. Since the book is released, it’ll be applied to any future editions.

The / in the path should work; it works on my Win10 system. Microsoft finally gave up on forcing everyone to remember which way the slash points and most of the API accepts both / and \ now.