Skip to content

Commit

Permalink
Make examples runnable
Browse files Browse the repository at this point in the history
  • Loading branch information
john-cd committed Dec 29, 2023
1 parent 9c794ec commit e397129
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lang/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ Create a shortcut to a path with the `use` keyword once, and then use the shorte

[Use]( https://doc.rust-lang.org/rust-by-example/mod/use.html )

```rust,editable,ignore
```rust,editable
{{#include ../../deps/examples/modules.rs}}
```

Idiomatic - bringing the function’s parent module into scope, not the function itself:

```rust,editable,ignore
```rust,editable
{{#include ../../deps/examples/modules2.rs}}
```

Expand Down

0 comments on commit e397129

Please sign in to comment.