diff --git a/docs/docs/noir/modules_packages_crates/modules.md b/docs/docs/noir/modules_packages_crates/modules.md index 14aa1f0579a..facb75464c5 100644 --- a/docs/docs/noir/modules_packages_crates/modules.md +++ b/docs/docs/noir/modules_packages_crates/modules.md @@ -175,12 +175,12 @@ fn from_foo() {} Filename : `src/foo/bar.nr` ```rust -// Same as bar::from_foo +// Same as foo::from_foo use super::from_foo; fn from_bar() { - from_foo(); // invokes super::from_foo(), which is bar::from_foo() - super::from_foo(); // also invokes bar::from_foo() + from_foo(); // invokes super::from_foo(), which is foo::from_foo() + super::from_foo(); // also invokes foo::from_foo() } ``` @@ -218,4 +218,4 @@ to make the module public or `pub(crate)` to make it public to just its crate: ```rust // This module is now public and can be seen by other crates. pub mod foo; -``` \ No newline at end of file +```