Ignoring demo code with compilation error.

This commit is contained in:
Sandeep Datta 2016-01-30 13:43:02 +05:30
parent 5f20143ccf
commit 0922d7e68f

View file

@ -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
}