summaryrefslogtreecommitdiff
path: root/rustlings-macros/info.toml
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-06-22 12:51:21 +0200
committermo8it <mo8it@proton.me>2024-06-22 12:51:21 +0200
commit879f0cd5c69b8b0bf93da036d31334f9757bf6a3 (patch)
treed38608a81d410a5acbebc8a37c275b1f2a67e0a5 /rustlings-macros/info.toml
parent613ec23f84d49078ed2e63c6111b7cf30ee764d6 (diff)
strings4 solution
Diffstat (limited to 'rustlings-macros/info.toml')
-rw-r--r--rustlings-macros/info.toml10
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