Skip to content

Commit bd70c03

Browse files
ehusskinnison
andcommitted
Apply suggestions from kinnison
Co-Authored-By: Daniel Silverstone <[email protected]>
1 parent f3e8c2e commit bd70c03

File tree

1 file changed

+5
-5
lines changed
  • src/doc/rustc/src/codegen-options

1 file changed

+5
-5
lines changed

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ metrics.
6161

6262
This flag instructs LLVM to use [link time
6363
optimizations](https://llvm.org/docs/LinkTimeOptimization.html) to produce
64-
better optimized code using whole-program analysis at the cost of longer
64+
better optimized code, using whole-program analysis, at the cost of longer
6565
linking time.
6666

6767
This flag may take one of the following values:
@@ -74,7 +74,7 @@ This flag may take one of the following values:
7474
This is similar to "fat", but takes substantially less time to run while
7575
still achieving performance gains similar to "fat".
7676

77-
If `-C lto` is not specified, then it will attempt to perform "thin local LTO"
77+
If `-C lto` is not specified, then the compiler will attempt to perform "thin local LTO"
7878
which performs "thin" LTO on the local crate only across its [codegen
7979
units](#codegen-units). In this case, LTO is disabled if codegen units is 1 or
8080
optimizations are disabled ([`-C opt-level=0`](#opt-level)).
@@ -244,7 +244,7 @@ Increasing parallelism may speed up compile times, but may also produce slower
244244
code. Setting this to 1 may improve the performance of generated code, but may
245245
be slower to compile.
246246

247-
The default if not specified is 16.
247+
The default, if not specified, is 16.
248248

249249
## remark
250250

@@ -272,7 +272,7 @@ Note: The [`-g` flag][option-g-debug] is an alias for `-C debuginfo=2`.
272272

273273
This flag lets you control the optimization level.
274274

275-
* `0`: no optimizations, also turn on [`cfg(debug_assertions)`](#debug-assertions).
275+
* `0`: no optimizations, also turns on [`cfg(debug_assertions)`](#debug-assertions).
276276
* `1`: basic optimizations
277277
* `2`: some optimizations
278278
* `3`: all optimizations
@@ -292,7 +292,7 @@ or off. It takes one of the following values:
292292
* `y`, `yes`, `on`, or no value: Enable debug-assertions.
293293
* `n`, `no`, or `off`: Disable debug-assertions.
294294

295-
If not specified, debug assertions are enabled only if the
295+
If not specified, debug assertions are automatically enabled only if the
296296
[opt-level](#opt-level) is 0.
297297

298298
## inline-threshold

0 commit comments

Comments
 (0)