We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 795f6ae + c586bf2 commit 31590bdCopy full SHA for 31590bd
src/doc/guide.md
@@ -2565,9 +2565,9 @@ It gives an error:
2565
2566
```{notrust,ignore}
2567
Compiling modules v0.1.0 (file:/home/you/projects/modules)
2568
-src/modules.rs:2:5: 2:23 error: function `print_hello` is private
2569
-src/modules.rs:2 hello::print_hello();
2570
- ^~~~~~~~~~~~~~~~~~
+src/main.rs:2:5: 2:23 error: function `print_hello` is private
+src/main.rs:2 hello::print_hello();
+ ^~~~~~~~~~~~~~~~~~
2571
```
2572
2573
To make it public, we use the `pub` keyword:
0 commit comments