diff options
| author | mo8it <mo8it@proton.me> | 2024-06-22 12:51:21 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-06-22 12:51:21 +0200 |
| commit | 879f0cd5c69b8b0bf93da036d31334f9757bf6a3 (patch) | |
| tree | d38608a81d410a5acbebc8a37c275b1f2a67e0a5 /rustlings-macros/info.toml | |
| parent | 613ec23f84d49078ed2e63c6111b7cf30ee764d6 (diff) | |
strings4 solution
Diffstat (limited to 'rustlings-macros/info.toml')
| -rw-r--r-- | rustlings-macros/info.toml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/rustlings-macros/info.toml b/rustlings-macros/info.toml index 618fc91..7607650 100644 --- a/rustlings-macros/info.toml +++ b/rustlings-macros/info.toml @@ -510,7 +510,15 @@ the string slice into an owned string, which you can then freely extend.""" name = "strings4" dir = "09_strings" test = false -hint = "No hints this time ;)" +hint = """ +Replace `placeholder` with either `string` or `string_slice` in the `main` function. + +Example: +`placeholder("blue");` +should become +`string_slice("blue");` +because "blue" is `&str`, not `String`. +""" # MODULES |
