Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/docs/noir/modules_packages_crates/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
```

Expand Down Expand Up @@ -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;
```
```
Loading