1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2025-08-08 22:36:55 +02:00

Merge pull request #2037 from jaads/fix-iterators-2-hint

Updated name of variable name in hint
This commit is contained in:
Mo
2024-07-10 11:33:45 +02:00
committed by GitHub

View File

@ -890,9 +890,9 @@ hint = """
`capitalize_first`: `capitalize_first`:
The variable `first` is a `char`. It needs to be capitalized and added to the The variable `first` is a `char`. It needs to be capitalized and added to the
remaining characters in `c` in order to return the correct `String`. remaining characters in `chars` in order to return the correct `String`.
The remaining characters in `c` can be viewed as a string slice using the The remaining characters in `chars` can be viewed as a string slice using the
`as_str` method. `as_str` method.
The documentation for `char` contains many useful methods. The documentation for `char` contains many useful methods.