Apply suggestions from code review

Co-authored-by: diannasoriel <mokou@fastmail.com>
This commit is contained in:
anuk909 2021-08-26 23:24:08 +03:00 committed by GitHub
parent b87a2323ae
commit 198e3148f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 6 deletions

View File

@ -4,7 +4,7 @@
// I AM NOT DONE
mod sausage_factory {
// Don't let anybody outside of this module to see that!
// Don't let anybody outside of this module see this!
fn get_secret_recipe() -> String {
String::from("Ginger")
}

View File

@ -1,6 +1,6 @@
// modules2.rs
// You can bring module paths into scopes and provide new names for them with the
// 'use' and 'as' keyword. Fix these 'use' statments to make the code compile.
// 'use' and 'as' keywords. Fix these 'use' statments to make the code compile.
// Make me compile! Execute `rustlings hint modules2` for hints :)
// I AM NOT DONE

View File

@ -1,6 +1,7 @@
// modules3.rs
// You can use the 'use' keyword to bring module paths from modules from anywere
// and espically from the rust standard library. Bring SystemTime and UNIX_EPOCH
// You can use the 'use' keyword to bring module paths from modules from anywhere
// and especially from the Rust standard library into your scope.
// Bring SystemTime and UNIX_EPOCH
// from the std::time module. Bonus style points if you can do it with one line!
// Make me compile! Execute `rustlings hint modules3` for hints :)

View File

@ -373,9 +373,9 @@ name = "modules3"
path = "exercises/modules/modules3.rs"
mode = "compile"
hint = """
UNIX_EPOCH and SystemTime declared in the std::time module, add a use statement
UNIX_EPOCH and SystemTime are declared in the std::time module. Add a use statement
for these two to bring them into scope. You can use nested paths or the glob
operator to bring these two in one line
operator to bring these two in using only one line.
"""
# COLLECTIONS