Merge pull request #3433 from SilkovAlexander/typo_to_trait

Chapter 13-03 fixed Iterator 'type' to 'trait'
This commit is contained in:
Chris Krycho 2024-04-17 17:07:52 -06:00 committed by GitHub
commit ba4b237a2f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ Weve 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 were taking ownership of `args` and well be mutating `args` by