strings and modules

This commit is contained in:
2026-01-25 15:49:17 +00:00
parent 26f785a0ff
commit 82f597d052
5 changed files with 20 additions and 18 deletions

View File

@@ -2,9 +2,8 @@
// the `use` and `as` keywords.
mod delicious_snacks {
// TODO: Add the following two `use` statements after fixing them.
// use self::fruits::PEAR as ???;
// use self::veggies::CUCUMBER as ???;
pub use self::fruits::PEAR as fruit;
pub use self::veggies::CUCUMBER as veggie;
mod fruits {
pub const PEAR: &str = "Pear";