refactor: swap strings and modules to be consistant with book.

Closes: https://github.com/rust-lang/rustlings/issues/1937
This commit is contained in:
eveeifyeve 2025-10-05 21:12:24 +11:00
parent f80fbca12e
commit 63e0fab85e
18 changed files with 21 additions and 21 deletions

View File

@ -72,20 +72,20 @@ bin = [
{ name = "enums2_sol", path = "../solutions/08_enums/enums2.rs" },
{ name = "enums3", path = "../exercises/08_enums/enums3.rs" },
{ name = "enums3_sol", path = "../solutions/08_enums/enums3.rs" },
{ name = "strings1", path = "../exercises/09_strings/strings1.rs" },
{ name = "strings1_sol", path = "../solutions/09_strings/strings1.rs" },
{ name = "strings2", path = "../exercises/09_strings/strings2.rs" },
{ name = "strings2_sol", path = "../solutions/09_strings/strings2.rs" },
{ name = "strings3", path = "../exercises/09_strings/strings3.rs" },
{ name = "strings3_sol", path = "../solutions/09_strings/strings3.rs" },
{ name = "strings4", path = "../exercises/09_strings/strings4.rs" },
{ name = "strings4_sol", path = "../solutions/09_strings/strings4.rs" },
{ name = "modules1", path = "../exercises/10_modules/modules1.rs" },
{ name = "modules1_sol", path = "../solutions/10_modules/modules1.rs" },
{ name = "modules2", path = "../exercises/10_modules/modules2.rs" },
{ name = "modules2_sol", path = "../solutions/10_modules/modules2.rs" },
{ name = "modules3", path = "../exercises/10_modules/modules3.rs" },
{ name = "modules3_sol", path = "../solutions/10_modules/modules3.rs" },
{ name = "strings1", path = "../exercises/10_strings/strings1.rs" },
{ name = "strings1_sol", path = "../solutions/10_strings/strings1.rs" },
{ name = "strings2", path = "../exercises/10_strings/strings2.rs" },
{ name = "strings2_sol", path = "../solutions/10_strings/strings2.rs" },
{ name = "strings3", path = "../exercises/10_strings/strings3.rs" },
{ name = "strings3_sol", path = "../solutions/10_strings/strings3.rs" },
{ name = "strings4", path = "../exercises/10_strings/strings4.rs" },
{ name = "strings4_sol", path = "../solutions/10_strings/strings4.rs" },
{ name = "modules1", path = "../exercises/09_modules/modules1.rs" },
{ name = "modules1_sol", path = "../solutions/09_modules/modules1.rs" },
{ name = "modules2", path = "../exercises/09_modules/modules2.rs" },
{ name = "modules2_sol", path = "../solutions/09_modules/modules2.rs" },
{ name = "modules3", path = "../exercises/09_modules/modules3.rs" },
{ name = "modules3_sol", path = "../solutions/09_modules/modules3.rs" },
{ name = "hashmaps1", path = "../exercises/11_hashmaps/hashmaps1.rs" },
{ name = "hashmaps1_sol", path = "../solutions/11_hashmaps/hashmaps1.rs" },
{ name = "hashmaps2", path = "../exercises/11_hashmaps/hashmaps2.rs" },

View File

@ -457,7 +457,7 @@ to get the variant's values."""
[[exercises]]
name = "strings1"
dir = "09_strings"
dir = "10_strings"
test = false
hint = """
The `current_favorite_color` function is currently returning a string slice
@ -471,7 +471,7 @@ another way that uses the `From` trait."""
[[exercises]]
name = "strings2"
dir = "09_strings"
dir = "10_strings"
test = false
hint = """
Yes, it would be really easy to fix this by just changing the value bound to
@ -486,7 +486,7 @@ https://doc.rust-lang.org/book/ch15-02-deref.html#implicit-deref-coercions-with-
[[exercises]]
name = "strings3"
dir = "09_strings"
dir = "10_strings"
hint = """
There are many useful standard library functions for strings. Let's try and use
some of them:
@ -500,7 +500,7 @@ https://doc.rust-lang.org/std/string/struct.String.html#method.replace"""
[[exercises]]
name = "strings4"
dir = "09_strings"
dir = "10_strings"
test = false
hint = """
Replace `placeholder` with either `string` or `string_slice` in the `main`
@ -516,7 +516,7 @@ because "blue" is `&str`, not `String`."""
[[exercises]]
name = "modules1"
dir = "10_modules"
dir = "09_modules"
test = false
hint = """
Everything is private in Rust by default. But there's a keyword we can use
@ -524,7 +524,7 @@ to make something public!"""
[[exercises]]
name = "modules2"
dir = "10_modules"
dir = "09_modules"
test = false
hint = """
The `delicious_snacks` module is trying to present an external interface that
@ -537,7 +537,7 @@ https://doc.rust-lang.org/book/ch07-04-bringing-paths-into-scope-with-the-use-ke
[[exercises]]
name = "modules3"
dir = "10_modules"
dir = "09_modules"
test = false
hint = """
`UNIX_EPOCH` and `SystemTime` are declared in the `std::time` module. Add a