Skip to content

Commit 31590bd

Browse files
committed
auto merge of #16235 : cakebaker/rust/rename_modules_rs_to_main_rs, r=steveklabnik
2 parents 795f6ae + c586bf2 commit 31590bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/doc/guide.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -2565,9 +2565,9 @@ It gives an error:
25652565

25662566
```{notrust,ignore}
25672567
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-
^~~~~~~~~~~~~~~~~~
2568+
src/main.rs:2:5: 2:23 error: function `print_hello` is private
2569+
src/main.rs:2 hello::print_hello();
2570+
^~~~~~~~~~~~~~~~~~
25712571
```
25722572

25732573
To make it public, we use the `pub` keyword:

0 commit comments

Comments
 (0)