Skip to content

Commit

Permalink
Rename modules.rs to main.rs in guide
Browse files Browse the repository at this point in the history
  • Loading branch information
cakebaker committed Aug 4, 2014
1 parent 765a23f commit c586bf2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/doc/guide.md
Expand Up @@ -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:
Expand Down

5 comments on commit c586bf2

@bors
Copy link
Contributor

@bors bors commented on c586bf2 Aug 4, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from steveklabnik
at cakebaker@c586bf2

@bors
Copy link
Contributor

@bors bors commented on c586bf2 Aug 4, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging cakebaker/rust/rename_modules_rs_to_main_rs = c586bf2 into auto

@bors
Copy link
Contributor

@bors bors commented on c586bf2 Aug 4, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cakebaker/rust/rename_modules_rs_to_main_rs = c586bf2 merged ok, testing candidate = 31590bd

@bors
Copy link
Contributor

@bors bors commented on c586bf2 Aug 4, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 31590bd

Please sign in to comment.