We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 53bec74 + 07e0161 commit 1537545Copy full SHA for 1537545
src/doc/trpl/error-handling.md
@@ -1898,7 +1898,7 @@ for pop in search(&data_file, &city) {
1898
1899
In this piece of code, we take `file` (which has the type
1900
`Option<String>`), and convert it to a type that `search` can use, in
1901
-this case, `&Option<AsRef<Path>>`. Do do this, we take a reference of
+this case, `&Option<AsRef<Path>>`. To do this, we take a reference of
1902
file, and map `Path::new` onto it. In this case, `as_ref()` converts
1903
the `Option<String>` into an `Option<&str>`, and from there, we can
1904
execute `Path::new` to the content of the optional, and return the
0 commit comments