mirror of
https://github.com/notohh/rustlings.git
synced 2025-07-11 02:19:16 -04:00
Clean up and unify exercises
This commit is contained in:
parent
cb9f1ac9ce
commit
2f810a4da6
96 changed files with 267 additions and 635 deletions
exercises/10_modules
|
@ -1,8 +1,3 @@
|
|||
// modules1.rs
|
||||
//
|
||||
// Execute `rustlings hint modules1` or use the `hint` watch subcommand for a
|
||||
// hint.
|
||||
|
||||
mod sausage_factory {
|
||||
// Don't let anybody outside of this module see this!
|
||||
fn get_secret_recipe() -> String {
|
||||
|
|
|
@ -1,11 +1,6 @@
|
|||
// modules2.rs
|
||||
//
|
||||
// You can bring module paths into scopes and provide new names for them with
|
||||
// the 'use' and 'as' keywords. Fix these 'use' statements to make the code
|
||||
// compile.
|
||||
//
|
||||
// Execute `rustlings hint modules2` or use the `hint` watch subcommand for a
|
||||
// hint.
|
||||
|
||||
mod delicious_snacks {
|
||||
// TODO: Fix these use statements
|
||||
|
|
|
@ -1,12 +1,7 @@
|
|||
// modules3.rs
|
||||
//
|
||||
// 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!
|
||||
//
|
||||
// Execute `rustlings hint modules3` or use the `hint` watch subcommand for a
|
||||
// hint.
|
||||
|
||||
// TODO: Complete this use statement
|
||||
use ???
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue