Rename modules.rs to main.rs in guide

This commit is contained in:
Daniel Hofstetter 2014-08-04 09:58:09 +02:00
parent 765a23f73d
commit c586bf21aa

View file

@ -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: