Fix typo in the guides

Just a minor thing...
This commit is contained in:
Tomek Wałkuski 2017-04-29 20:26:27 +02:00 committed by GitHub
parent 30fac32978
commit 7228ae3543
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ fn get_page(path: PathBuf) -> T { ... }
The path after `/page/` will be available in the `path` parameter. The The path after `/page/` will be available in the `path` parameter. The
`FromSegments` implementation for `PathBuf` ensures that `path` cannot lead to `FromSegments` implementation for `PathBuf` ensures that `path` cannot lead to
[path traversal attacks](https://www.owasp.org/index.php/Path_Traversal). With [path traversal attacks](https://www.owasp.org/index.php/Path_Traversal). With
this, a safe and secure static file server can implemented in 4 lines: this, a safe and secure static file server can be implemented in 4 lines:
```rust ```rust
#[get("/<file..>")] #[get("/<file..>")]