]> git.lizzy.rs Git - rust.git/commitdiff
review nits
authorsteveklabnik <steve@steveklabnik.com>
Mon, 23 Apr 2018 15:58:11 +0000 (11:58 -0400)
committersteveklabnik <steve@steveklabnik.com>
Mon, 23 Apr 2018 15:58:11 +0000 (11:58 -0400)
src/doc/rustc/src/codegen-options/index.md
src/doc/rustc/src/lints/levels.md
src/doc/rustc/src/lints/listing/deny-by-default.md
src/doc/rustc/src/targets/index.md

index 70dae9314c1f75c945155453e1c2bde39bfac221..eff09428902e8012669b88ddc87266e06894f238 100644 (file)
@@ -99,7 +99,7 @@ flag will turn that behavior off.
 ## no-vectorize-slp
 
 By default, `rustc` will attempt to vectorize loops using [superword-level
-parallism](https://llvm.org/docs/Vectorizers.html#the-slp-vectorizer). This
+parallelism](https://llvm.org/docs/Vectorizers.html#the-slp-vectorizer). This
 flag will turn that behavior off.
 
 ## soft-float
@@ -206,4 +206,4 @@ This option lets you control what happens when the code panics.
 
 ## incremental
 
-This flag allows you to enable incremental compilation.
\ No newline at end of file
+This flag allows you to enable incremental compilation.
index 83b65cd648e0f0a59eca596952862bf170ff0bff..19bb6707d2285ffe357011e4a6f4796d6703a60b 100644 (file)
@@ -45,8 +45,8 @@ pub fn foo() {
 
 This will produce this warning:
 
-```bash
-> rustc lib.rs --crate-type=lib
+```console
+$ rustc lib.rs --crate-type=lib
 warning: unused variable: `x`
  --> lib.rs:2:9
   |
index 0c49f2f7b36ebdf33b07dc8be8bc46e18610af7d..e7ec6af8be1e3752a89a2a1e5bc0eb8f2e05151f 100644 (file)
@@ -165,7 +165,7 @@ error: mutating transmuted &mut T from &T may cause undefined behavior, consider
 
 This lint detects any `const` items with the `#[no_mangle]` attribute.
 Constants do not have their symbols exported, and therefore, this probably
-means you meant to use a `static`, not a `const. Some example code that
+means you meant to use a `static`, not a `const`. Some example code that
 triggers this lint:
 
 ```rust,ignore
index cea7ce4dea56ad088cdedad8b36ffd0b841fa902..07e3a79471f5b5f4d877ed2129ef782df76fbdc9 100644 (file)
@@ -3,12 +3,11 @@
 `rustc` is a cross-compiler by default. This means that you can use any compiler to build for any
 architecture. The list of *targets* are the possible architectures that you can build for.
 
-You can see the API docs for a given target
-[here](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_back/target/struct.Target.html), all
-of these options can be set on a per-target basis.
+To see all the options that you can set with a target, see the docs
+[here](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_back/target/struct.Target.html).
 
 To compile to a particular target, use the `--target` flag:
 
 ```bash
 $ rustc src/main.rs --target=wasm32-unknown-unknown
-```
\ No newline at end of file
+```