From 0922d7e68f3186aa57751af26f3342b1837a5140 Mon Sep 17 00:00:00 2001 From: Sandeep Datta Date: Sat, 30 Jan 2016 13:43:02 +0530 Subject: [PATCH] Ignoring demo code with compilation error. --- src/doc/book/error-handling.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/book/error-handling.md b/src/doc/book/error-handling.md index d4df6a813bc80..cf78a21d26fd5 100644 --- a/src/doc/book/error-handling.md +++ b/src/doc/book/error-handling.md @@ -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 }