Skip to content

Commit 3818f83

Browse files
authored
update src/cargo/conventions.md (#192)
1 parent 34b81df commit 3818f83

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

english/src/cargo/conventions.md

+3-3
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.

src/cargo/conventions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ foo
2222
└── my_other_bin.rs
2323
```
2424

25-
为了使得 `cargo` 编译或运行这个二进制可执行文件而不是默认或其他二进制可执行文件,我们只需给 `cargo` 增加一个参数 `--bin my_other_bin`,其中 `my_other_bin` 是我们想要使用的二进制可执行文件的名称。
25+
为了使得 `cargo` 只编译或运行这个二进制可执行文件,我们只需给 `cargo` 增加一个参数 `--bin my_other_bin`,其中 `my_other_bin` 是我们想要使用的二进制可执行文件的名称。
2626

2727
除了可添加其他二进制可执行文件外,`cargo` 还支持[更多功能][more features],如基准测试,测试和示例。
2828

0 commit comments

Comments
 (0)