diff --git a/src/doc/trpl/error-handling.md b/src/doc/trpl/error-handling.md index e538a40415d..d839e182092 100644 --- a/src/doc/trpl/error-handling.md +++ b/src/doc/trpl/error-handling.md @@ -1898,7 +1898,7 @@ for pop in search(&data_file, &city) { In this piece of code, we take `file` (which has the type `Option`), and convert it to a type that `search` can use, in -this case, `&Option>`. Do do this, we take a reference of +this case, `&Option>`. To do this, we take a reference of file, and map `Path::new` onto it. In this case, `as_ref()` converts the `Option` into an `Option<&str>`, and from there, we can execute `Path::new` to the content of the optional, and return the