diff --git a/src/doc/guide.md b/src/doc/guide.md index dc497d49edec..c00020a8c000 100644 --- a/src/doc/guide.md +++ b/src/doc/guide.md @@ -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: