From a47d7a752e8554dc3cc3667b1715d95a3848f620 Mon Sep 17 00:00:00 2001 From: Nathan Long Date: Thu, 16 Apr 2015 06:16:52 -0400 Subject: [PATCH] Explain the `--bin` flag more clearly --- src/doc/trpl/hello-cargo.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/doc/trpl/hello-cargo.md b/src/doc/trpl/hello-cargo.md index 8d8b1734334..9406381a40f 100644 --- a/src/doc/trpl/hello-cargo.md +++ b/src/doc/trpl/hello-cargo.md @@ -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: -- 2.44.0