File tree Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ with the Cargo team first.
9
9
10
10
For features that require behavior changes or new syntax in ` Cargo.toml ` , then
11
11
it will need a ` cargo-features ` value placed at the top of ` Cargo.toml ` to
12
- enable it. The process for doing adding a new feature is described in the
12
+ enable it. The process for adding a new feature is described in the
13
13
[ ` features ` module] . Code that implements the feature will need to manually
14
14
check that the feature is enabled for the current manifest.
15
15
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ native library using [FFI].
172
172
173
173
The ` LIB ` string is passed directly to rustc, so it supports any syntax that
174
174
` -l ` does. \
175
- Currently the full supported syntax for ` LIB ` is ` [KIND[:MODIFIERS]=]NAME[:RENAME] ` .
175
+ Currently the fully supported syntax for ` LIB ` is ` [KIND[:MODIFIERS]=]NAME[:RENAME] ` .
176
176
177
177
The ` -l ` flag is only passed to the library target of the package, unless
178
178
there is no library target, in which case it is passed to all targets. This is
Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ explaining the format of the entry.
179
179
// An unsigned 32-bit integer value indicating the schema version of this
180
180
// entry.
181
181
//
182
- // If this not specified, it should be interpreted as the default of 1.
182
+ // If this is not specified, it should be interpreted as the default of 1.
183
183
//
184
184
// Cargo (starting with version 1.51) will ignore versions it does not
185
185
// recognize. This provides a method to safely introduce changes to index
Original file line number Diff line number Diff line change @@ -501,7 +501,7 @@ solutions.
501
501
502
502
### Why was a dependency included?
503
503
504
- Say you see dependency ` rand ` in the ` cargo check ` output but don't think its needed and want to understand why its being pulled in.
504
+ Say you see dependency ` rand ` in the ` cargo check ` output but don't think it's needed and want to understand why it's being pulled in.
505
505
506
506
You can run
507
507
``` console
Original file line number Diff line number Diff line change @@ -356,7 +356,7 @@ fn main() {
356
356
#### Minor: Adding ` repr(C) ` to a default representation {#repr-c-add}
357
357
358
358
It is safe to add ` repr(C) ` to a struct, union, or enum with [ the default representation] .
359
- This is safe because users should not make assumptions about the alignment, layout, or size of types with with the default representation.
359
+ This is safe because users should not make assumptions about the alignment, layout, or size of types with the default representation.
360
360
361
361
``` rust,ignore
362
362
// MINOR CHANGE
@@ -1010,7 +1010,7 @@ fn main() {
1010
1010
```
1011
1011
1012
1012
Mitigation strategies:
1013
- * Do not add new new fields to all-public field structs.
1013
+ * Do not add new fields to all-public field structs.
1014
1014
* Mark structs as [ ` #[non_exhaustive] ` ] [ non_exhaustive ] when first introducing
1015
1015
a struct to prevent users from using struct literal syntax, and instead
1016
1016
provide a constructor method and/or [ Default] implementation.
Original file line number Diff line number Diff line change @@ -594,7 +594,7 @@ cargo +nightly -Ztarget-applies-to-host build --target x86_64-unknown-linux-gnu
594
594
* Original Pull Request: [ #9322 ] ( https://github.com/rust-lang/cargo/pull/9322 )
595
595
* Tracking Issue: [ #9452 ] ( https://github.com/rust-lang/cargo/issues/9452 )
596
596
597
- The ` host ` key in a config file can be used pass flags to host build targets
597
+ The ` host ` key in a config file can be used to pass flags to host build targets
598
598
such as build scripts that must run on the host system instead of the target
599
599
system when cross compiling. It supports both generic and host arch specific
600
600
tables. Matching host arch tables take precedence over generic host tables.
@@ -614,7 +614,7 @@ rustflags = ["-Clink-arg=--verbose"]
614
614
linker = " /path/to/target/linker"
615
615
```
616
616
617
- The generic ` host ` table above will be entirely ignored when building on a
617
+ The generic ` host ` table above will be entirely ignored when building on an
618
618
` x86_64-unknown-linux-gnu ` host as the ` host.x86_64-unknown-linux-gnu ` table
619
619
takes precedence.
620
620
You can’t perform that action at this time.
0 commit comments