Skip to content

Commit 0922d7e

Browse files
committed
Ignoring demo code with compilation error.
1 parent 5f20143 commit 0922d7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/book/error-handling.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ fn file_name(file_path: &str) -> Option<&str> {
353353
You might think that we could use the `map` combinator to reduce the case
354354
analysis, but its type doesn't quite fit...
355355

356-
```rust
356+
```rust,ignore
357357
fn file_path_ext(file_path: &str) -> Option<&str> {
358358
file_name(file_path).map(|x| extension(x)) //Compilation error
359359
}

0 commit comments

Comments
 (0)