We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f20143 commit 0922d7eCopy full SHA for 0922d7e
src/doc/book/error-handling.md
@@ -353,7 +353,7 @@ fn file_name(file_path: &str) -> Option<&str> {
353
You might think that we could use the `map` combinator to reduce the case
354
analysis, but its type doesn't quite fit...
355
356
-```rust
+```rust,ignore
357
fn file_path_ext(file_path: &str) -> Option<&str> {
358
file_name(file_path).map(|x| extension(x)) //Compilation error
359
}
0 commit comments