mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-09 20:29:18 +00:00
update exercise module2 by more doc and ??? to make is just little bit more difficult
This commit is contained in:
parent
f88f09e986
commit
a09a2173ae
@ -1,11 +1,15 @@
|
|||||||
// modules2.rs
|
// 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.
|
||||||
// Make me compile! Execute `rustlings hint modules2` for hints :)
|
// Make me compile! Execute `rustlings hint modules2` for hints :)
|
||||||
|
|
||||||
// I AM NOT DONE
|
// I AM NOT DONE
|
||||||
|
|
||||||
mod delicious_snacks {
|
mod delicious_snacks {
|
||||||
use self::fruits::PEAR as fruit;
|
|
||||||
use self::veggies::CUCUMBER as veggie;
|
// TODO: Fix these use statments
|
||||||
|
use self::fruits::PEAR as ???
|
||||||
|
use self::veggies::CUCUMBER as ???
|
||||||
|
|
||||||
mod fruits {
|
mod fruits {
|
||||||
pub const PEAR: &'static str = "Pear";
|
pub const PEAR: &'static str = "Pear";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user