diff --git a/src/doc/book/error-handling.md b/src/doc/book/error-handling.md
index b5c0eabba9de..d4df6a813bc8 100644
--- a/src/doc/book/error-handling.md
+++ b/src/doc/book/error-handling.md
@@ -359,11 +359,18 @@ fn file_path_ext(file_path: &str) -> Option<&str> {
}
```
-The `map` function here wraps the value returned by the `extension` function inside an `Option<_>` and since the `extension` function itself returns an `Option<&str>` the expression `file_name(file_path).map(|x| extension(x))` actually returns an `Option