Use the `pub` modifier to override default visibility.
()
| 10 | |
| 11 | // Use the `pub` modifier to override default visibility. |
| 12 | pub fn function() { |
| 13 | println!("called `my_mod::function()`"); |
| 14 | } |
| 15 | |
| 16 | // Items can access other items in the same module, |
| 17 | // even when private. |