Skip to content

Commit a47d7a7

Browse files
committed
Explain the --bin flag more clearly
1 parent 798fa22 commit a47d7a7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/doc/trpl/hello-cargo.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,7 @@ To start a new project with Cargo, use `cargo new`:
138138
$ cargo new hello_world --bin
139139
```
140140

141-
We’re passing `--bin` because we're making a binary program: if we were making
142-
a library, we'd leave it off.
141+
We’re passing `--bin` because our goal is to get straight to making an executable application, as opposed to a library. Executables are often called ‘binaries.’ (as in `/usr/bin`, if you’re on a Unix system)
143142

144143
Let's check out what Cargo has generated for us:
145144

0 commit comments

Comments
 (0)