tokio-rs / website

Website for the Tokio project
https://tokio.rs
MIT License
228 stars 329 forks source link

Use a raw string literal when including markdown files during doc test creation #692

Closed PigeonF closed 1 year ago

PigeonF commented 1 year ago

When trying to run the tests on Windows, the compilation fails, because the paths to the markdown files get canonicalized to contain backslashes (e.g. \\?\D:\tokio-rs\website\content\tokio\index.md). This leads to an unknown character escape error. Using a raw string literal fixes this by having rustc interpret the path as-is.