From 198e3148f5405231e1d8184ad1d6624c4816553e Mon Sep 17 00:00:00 2001 From: anuk909 <34924662+anuk909@users.noreply.github.com> Date: Thu, 26 Aug 2021 23:24:08 +0300 Subject: [PATCH] Apply suggestions from code review Co-authored-by: diannasoriel --- exercises/modules/modules1.rs | 2 +- exercises/modules/modules2.rs | 2 +- exercises/modules/modules3.rs | 5 +++-- info.toml | 4 ++-- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/exercises/modules/modules1.rs b/exercises/modules/modules1.rs index fd8c32d9..f74b4b1e 100644 --- a/exercises/modules/modules1.rs +++ b/exercises/modules/modules1.rs @@ -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") } diff --git a/exercises/modules/modules2.rs b/exercises/modules/modules2.rs index 8b510eb9..687bb788 100644 --- a/exercises/modules/modules2.rs +++ b/exercises/modules/modules2.rs @@ -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 diff --git a/exercises/modules/modules3.rs b/exercises/modules/modules3.rs index 8a1f9e21..8eed77df 100644 --- a/exercises/modules/modules3.rs +++ b/exercises/modules/modules3.rs @@ -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 :) diff --git a/info.toml b/info.toml index a47d03ed..5310d49d 100644 --- a/info.toml +++ b/info.toml @@ -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