Skip to content

Commit 1537545

Browse files
committed
Rollup merge of #29015 - dripton:master, r=alexcrichton
Just a single-character typo fix.
2 parents 53bec74 + 07e0161 commit 1537545

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/trpl/error-handling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1898,7 +1898,7 @@ for pop in search(&data_file, &city) {
18981898

18991899
In this piece of code, we take `file` (which has the type
19001900
`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
1901+
this case, `&Option<AsRef<Path>>`. To do this, we take a reference of
19021902
file, and map `Path::new` onto it. In this case, `as_ref()` converts
19031903
the `Option<String>` into an `Option<&str>`, and from there, we can
19041904
execute `Path::new` to the content of the optional, and return the

0 commit comments

Comments
 (0)