]> git.lizzy.rs Git - rust.git/commitdiff
Ignoring demo code with compilation error.
authorSandeep Datta <datta.sandeep@gmail.com>
Sat, 30 Jan 2016 08:13:02 +0000 (13:43 +0530)
committerSandeep Datta <datta.sandeep@gmail.com>
Sat, 30 Jan 2016 08:13:02 +0000 (13:43 +0530)
src/doc/book/error-handling.md

index d4df6a813bc800ac4495f548b2dc73200baa5c7c..cf78a21d26fd5ea3b924a23ef911a2644fa1b306 100644 (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
 }