Skip to content

Commit 1f6eb34

Browse files
committed
docs: Update for clarity
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.
1 parent 583c5c5 commit 1f6eb34

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
@@ -288,8 +288,7 @@ mentioned earlier, you can use double colons to refer to sub-modules and the
288288
functions inside of them.
289289

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

0 commit comments

Comments
 (0)