Skip to content

Commit 1644978

Browse files
committed
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.
2 parents 5f71c22 + 1f6eb34 commit 1644978

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/doc/trpl/crates-and-modules.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,7 @@ mentioned earlier, you can use double colons to refer to sub-modules and the
287287
functions inside of them.
288288

289289
Also, Cargo assumes that `src/main.rs` is the crate root of a binary crate,
290-
rather than a library crate. Once we compile `src/main.rs`, we'll get an
291-
executable that we can run. Our package now has two crates: `src/lib.rs` and
290+
rather than a library crate. Our package now has two crates: `src/lib.rs` and
292291
`src/main.rs`. This pattern is quite common for executable crates: most
293292
functionality is in a library crate, and the executable crate uses that
294293
library. This way, other programs can also use the library crate, and it's also

0 commit comments

Comments
 (0)