Skip to content

Commit ac79c41

Browse files
committed
review nits
1 parent 00c860e commit ac79c41

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

src/doc/rustc/src/codegen-options/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ flag will turn that behavior off.
9999
## no-vectorize-slp
100100

101101
By default, `rustc` will attempt to vectorize loops using [superword-level
102-
parallism](https://llvm.org/docs/Vectorizers.html#the-slp-vectorizer). This
102+
parallelism](https://llvm.org/docs/Vectorizers.html#the-slp-vectorizer). This
103103
flag will turn that behavior off.
104104

105105
## soft-float
@@ -206,4 +206,4 @@ This option lets you control what happens when the code panics.
206206

207207
## incremental
208208

209-
This flag allows you to enable incremental compilation.
209+
This flag allows you to enable incremental compilation.

src/doc/rustc/src/lints/levels.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ pub fn foo() {
4545

4646
This will produce this warning:
4747

48-
```bash
49-
> rustc lib.rs --crate-type=lib
48+
```console
49+
$ rustc lib.rs --crate-type=lib
5050
warning: unused variable: `x`
5151
--> lib.rs:2:9
5252
|

src/doc/rustc/src/lints/listing/deny-by-default.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ error: mutating transmuted &mut T from &T may cause undefined behavior, consider
165165

166166
This lint detects any `const` items with the `#[no_mangle]` attribute.
167167
Constants do not have their symbols exported, and therefore, this probably
168-
means you meant to use a `static`, not a `const. Some example code that
168+
means you meant to use a `static`, not a `const`. Some example code that
169169
triggers this lint:
170170

171171
```rust,ignore

src/doc/rustc/src/targets/index.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
`rustc` is a cross-compiler by default. This means that you can use any compiler to build for any
44
architecture. The list of *targets* are the possible architectures that you can build for.
55

6-
You can see the API docs for a given target
7-
[here](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_back/target/struct.Target.html), all
8-
of these options can be set on a per-target basis.
6+
To see all the options that you can set with a target, see the docs
7+
[here](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_back/target/struct.Target.html).
98

109
To compile to a particular target, use the `--target` flag:
1110

1211
```bash
1312
$ rustc src/main.rs --target=wasm32-unknown-unknown
14-
```
13+
```

0 commit comments

Comments
 (0)