diff options
| author | bors <bors@rust-lang.org> | 2014-08-04 14:41:18 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-08-04 14:41:18 +0000 |
| commit | 31590bd34900403a18079bf4623cd35f9da0c100 (patch) | |
| tree | 38182b74c3ff43a86b590104befa2ce5c9dcf4f0 | |
| parent | 795f6ae829ab1bfd72394a5da9096e2717ec0f62 (diff) | |
| parent | c586bf21aa56ec6ec0619137155c4cc83334808f (diff) | |
| download | rust-31590bd34900403a18079bf4623cd35f9da0c100.tar.gz rust-31590bd34900403a18079bf4623cd35f9da0c100.zip | |
auto merge of #16235 : cakebaker/rust/rename_modules_rs_to_main_rs, r=steveklabnik
| -rw-r--r-- | src/doc/guide.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/doc/guide.md b/src/doc/guide.md index dc497d49ede..c00020a8c00 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: |
