Rename modules.rs to main.rs in guide
This commit is contained in:
parent
765a23f73d
commit
c586bf21aa
1 changed files with 3 additions and 3 deletions
|
|
@ -2565,9 +2565,9 @@ It gives an error:
|
|||
|
||||
```{notrust,ignore}
|
||||
Compiling modules v0.1.0 (file:/home/you/projects/modules)
|
||||
src/modules.rs:2:5: 2:23 error: function `print_hello` is private
|
||||
src/modules.rs:2 hello::print_hello();
|
||||
^~~~~~~~~~~~~~~~~~
|
||||
src/main.rs:2:5: 2:23 error: function `print_hello` is private
|
||||
src/main.rs:2 hello::print_hello();
|
||||
^~~~~~~~~~~~~~~~~~
|
||||
```
|
||||
|
||||
To make it public, we use the `pub` keyword:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue