Skip to content

Commit

Permalink
Merge pull request #3433 from SilkovAlexander/typo_to_trait
Browse files Browse the repository at this point in the history
Chapter 13-03 fixed Iterator 'type' to 'trait'
  • Loading branch information
chriskrycho authored Apr 17, 2024
2 parents 343c507 + 72b2348 commit ba4b237
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ch13-03-improving-our-io-project.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ We’ve updated the signature of the `Config::build` function so the parameter
`args` has a generic type with the trait bounds `impl Iterator<Item = String>`
instead of `&[String]`. This usage of the `impl Trait` syntax we discussed in
the [“Traits as Parameters”][impl-trait]<!-- ignore --> section of Chapter 10
means that `args` can be any type that implements the `Iterator` type and
means that `args` can be any type that implements the `Iterator` trait and
returns `String` items.

Because we’re taking ownership of `args` and we’ll be mutating `args` by
Expand Down

0 comments on commit ba4b237

Please sign in to comment.