Skip to content

Commit

Permalink
Explain the --bin flag more clearly
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanl committed Jun 11, 2015
1 parent 798fa22 commit a47d7a7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/doc/trpl/hello-cargo.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,7 @@ To start a new project with Cargo, use `cargo new`:
$ cargo new hello_world --bin
```

We’re passing `--bin` because we're making a binary program: if we were making
a library, we'd leave it off.
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)

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

Expand Down

0 comments on commit a47d7a7

Please sign in to comment.