From 6f2703b7679ffe6fbfb49f751eb751f91dd68fac Mon Sep 17 00:00:00 2001 From: August Feng <46177585+augustfengd@users.noreply.github.com> Date: Fri, 30 Sep 2022 05:00:43 -0400 Subject: [PATCH] add more precision to the effects of --bin flag (#1607) `cargo build` will include *all* binaries by default, so it is misleading to say "default or other binaries". By using the the word `only` as an adverb, we implicitly communicating this while also explaining the side effects of `--bin` correctly. --- src/cargo/conventions.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cargo/conventions.md b/src/cargo/conventions.md index 6e8196608e..2335104f51 100644 --- a/src/cargo/conventions.md +++ b/src/cargo/conventions.md @@ -25,9 +25,9 @@ foo └── my_other_bin.rs ``` -To tell `cargo` to compile or run this binary as opposed to the default or other -binaries, we just pass `cargo` the `--bin my_other_bin` flag, where `my_other_bin` -is the name of the binary we want to work with. +To tell `cargo` to only compile or run this binary, we just pass `cargo` the +`--bin my_other_bin` flag, where `my_other_bin` is the name of the binary we +want to work with. In addition to extra binaries, `cargo` supports [more features] such as benchmarks, tests, and examples.