Add link to std
in strings3
hint
Seems like it's the first place, where `std` is introduced in Rustlings, and it's a good place to facilitate docs discovery for user. As _the book_ seems to have no Rustlings-sized solutions for this exercise.
This commit is contained in:
parent
b85b8de232
commit
3028d1395c
@ -449,7 +449,7 @@ path = "exercises/strings/strings3.rs"
|
|||||||
mode = "test"
|
mode = "test"
|
||||||
hint = """
|
hint = """
|
||||||
There's tons of useful standard library functions for strings. Let's try and use some of
|
There's tons of useful standard library functions for strings. Let's try and use some of
|
||||||
them!
|
them: <https://doc.rust-lang.org/std/string/struct.String.html#method.trim>!
|
||||||
|
|
||||||
For the compose_me method: You can either use the `format!` macro, or convert the string
|
For the compose_me method: You can either use the `format!` macro, or convert the string
|
||||||
slice into an owned string, which you can then freely extend."""
|
slice into an owned string, which you can then freely extend."""
|
||||||
|
Reference in New Issue
Block a user