Skip to content

Commit 6f2703b

Browse files
authored
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.
1 parent 7a4484f commit 6f2703b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cargo/conventions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ foo
2525
└── my_other_bin.rs
2626
```
2727

28-
To tell `cargo` to compile or run this binary as opposed to the default or other
29-
binaries, we just pass `cargo` the `--bin my_other_bin` flag, where `my_other_bin`
30-
is the name of the binary we want to work with.
28+
To tell `cargo` to only compile or run this binary, we just pass `cargo` the
29+
`--bin my_other_bin` flag, where `my_other_bin` is the name of the binary we
30+
want to work with.
3131

3232
In addition to extra binaries, `cargo` supports [more features] such as
3333
benchmarks, tests, and examples.

0 commit comments

Comments
 (0)