Skip to content

Commit 9da1dd7

Browse files
author
Satya Rohith
authored
fix: make hello public
1 parent ced7cc5 commit 9da1dd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/rustc/src/what-is-rustc.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ fn main() {
5050
And a `foo.rs` that had this:
5151

5252
```rust,ignore
53-
fn hello() {
53+
pub fn hello() {
5454
println!("Hello, world!");
5555
}
5656
```
@@ -65,4 +65,4 @@ No need to tell `rustc` about `foo.rs`; the `mod` statements give it
6565
everything that it needs. This is different than how you would use a C
6666
compiler, where you invoke the compiler on each file, and then link
6767
everything together. In other words, the *crate* is a translation unit, not a
68-
particular module.
68+
particular module.

0 commit comments

Comments
 (0)