Ignoring demo code with compilation error.
This commit is contained in:
parent
5f20143ccf
commit
0922d7e68f
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue