diff options
| author | Satya Rohith <gsatyarohith@gmail.com> | 2018-12-13 15:07:10 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-13 15:07:10 +0530 |
| commit | 9da1dd74c05792ab8850b954752f2afc3a8a5319 (patch) | |
| tree | 675a95dbc70a29592050ec0f844b1d5860cc1372 | |
| parent | ced7cc5c6523ff478599ed9188df37e91fd96c68 (diff) | |
| download | rust-9da1dd74c05792ab8850b954752f2afc3a8a5319.tar.gz rust-9da1dd74c05792ab8850b954752f2afc3a8a5319.zip | |
fix: make hello public
| -rw-r--r-- | src/doc/rustc/src/what-is-rustc.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/rustc/src/what-is-rustc.md b/src/doc/rustc/src/what-is-rustc.md index bed1b71c24e..9dcc9f7daa9 100644 --- a/src/doc/rustc/src/what-is-rustc.md +++ b/src/doc/rustc/src/what-is-rustc.md @@ -50,7 +50,7 @@ fn main() { And a `foo.rs` that had this: ```rust,ignore -fn hello() { +pub fn hello() { println!("Hello, world!"); } ``` @@ -65,4 +65,4 @@ No need to tell `rustc` about `foo.rs`; the `mod` statements give it everything that it needs. This is different than how you would use a C compiler, where you invoke the compiler on each file, and then link everything together. In other words, the *crate* is a translation unit, not a -particular module. \ No newline at end of file +particular module. |
