diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2015-01-22 18:09:58 -0500 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2015-01-22 18:09:58 -0500 |
| commit | 1644978616e5c950eb345dc6773e8eb5a3e0c25a (patch) | |
| tree | 34623b4027b4be5398f27d07fdbe2560fb915bf0 | |
| parent | 5f71c22d87ecb591670d5a8a3f2ba7c51022e562 (diff) | |
| parent | 1f6eb344d0c3e23128280ec447067f0de5bec199 (diff) | |
| download | rust-1644978616e5c950eb345dc6773e8eb5a3e0c25a.tar.gz rust-1644978616e5c950eb345dc6773e8eb5a3e0c25a.zip | |
Rollup merge of #21450 - alfie:book2, r=steveklabnik
Compiling won't produce an executable just yet because (as stated in the next paragraph) there are errors. By removing this sentance, the reader won't get confused when they expect a successful compile i.e. if they don't read ahead one paragraph, they are going to be checking their code and wondering why it's not compiling.
| -rw-r--r-- | src/doc/trpl/crates-and-modules.md | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/doc/trpl/crates-and-modules.md b/src/doc/trpl/crates-and-modules.md index 79bb5c182f4..efeb201efe8 100644 --- a/src/doc/trpl/crates-and-modules.md +++ b/src/doc/trpl/crates-and-modules.md @@ -287,8 +287,7 @@ mentioned earlier, you can use double colons to refer to sub-modules and the functions inside of them. Also, Cargo assumes that `src/main.rs` is the crate root of a binary crate, -rather than a library crate. Once we compile `src/main.rs`, we'll get an -executable that we can run. Our package now has two crates: `src/lib.rs` and +rather than a library crate. Our package now has two crates: `src/lib.rs` and `src/main.rs`. This pattern is quite common for executable crates: most functionality is in a library crate, and the executable crate uses that library. This way, other programs can also use the library crate, and it's also |
