mirror of
https://github.com/notohh/rustlings.git
synced 2025-07-23 22:20:04 -04:00
modules1 solution
This commit is contained in:
parent
879f0cd5c6
commit
ecbe9b7324
3 changed files with 18 additions and 4 deletions
exercises/10_modules
|
@ -1,3 +1,4 @@
|
|||
// TODO: Fix the compiler error about calling a private function.
|
||||
mod sausage_factory {
|
||||
// Don't let anybody outside of this module see this!
|
||||
fn get_secret_recipe() -> String {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue