diff options
| author | Daniel Hofstetter <daniel.hofstetter@42dh.com> | 2014-08-04 09:58:09 +0200 |
|---|---|---|
| committer | Daniel Hofstetter <daniel.hofstetter@42dh.com> | 2014-08-04 16:23:46 +0200 |
| commit | c586bf21aa56ec6ec0619137155c4cc83334808f (patch) | |
| tree | ea3985127bebc83951cb01b3a1e6fe9e0bb11e1e | |
| parent | 765a23f73db0fc23024849ea1fc0831bda58687d (diff) | |
| download | rust-c586bf21aa56ec6ec0619137155c4cc83334808f.tar.gz rust-c586bf21aa56ec6ec0619137155c4cc83334808f.zip | |
Rename modules.rs to main.rs in guide
| -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: |
