Skip to content

Commit

Permalink
Ignoring demo code with compilation error.
Browse files Browse the repository at this point in the history
  • Loading branch information
sandeep-datta committed Jan 30, 2016
1 parent 5f20143 commit 0922d7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/book/error-handling.md
Expand Up @@ -353,7 +353,7 @@ fn file_name(file_path: &str) -> Option<&str> {
You might think that we could use the `map` combinator to reduce the case
analysis, but its type doesn't quite fit...

```rust
```rust,ignore
fn file_path_ext(file_path: &str) -> Option<&str> {
file_name(file_path).map(|x| extension(x)) //Compilation error
}
Expand Down

0 comments on commit 0922d7e

Please sign in to comment.