Skip to content

Commit 5d5c524

Browse files
committed
Auto merge of #14182 - hattizai:chore/typos, r=weihanglo
chore: fix some typos fix some typos in docs to enhance readability.
2 parents 838d81d + a140084 commit 5d5c524

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

src/doc/contrib/src/process/unstable.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ with the Cargo team first.
99

1010
For features that require behavior changes or new syntax in `Cargo.toml`, then
1111
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
1313
[`features` module]. Code that implements the feature will need to manually
1414
check that the feature is enabled for the current manifest.
1515

src/doc/src/reference/build-scripts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ native library using [FFI].
172172

173173
The `LIB` string is passed directly to rustc, so it supports any syntax that
174174
`-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]`.
176176

177177
The `-l` flag is only passed to the library target of the package, unless
178178
there is no library target, in which case it is passed to all targets. This is

src/doc/src/reference/registry-index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ explaining the format of the entry.
179179
// An unsigned 32-bit integer value indicating the schema version of this
180180
// entry.
181181
//
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.
183183
//
184184
// Cargo (starting with version 1.51) will ignore versions it does not
185185
// recognize. This provides a method to safely introduce changes to index

src/doc/src/reference/resolver.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ solutions.
501501

502502
### Why was a dependency included?
503503

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.
505505

506506
You can run
507507
```console

src/doc/src/reference/semver.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ fn main() {
356356
#### Minor: Adding `repr(C)` to a default representation {#repr-c-add}
357357

358358
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.
360360

361361
```rust,ignore
362362
// MINOR CHANGE
@@ -1010,7 +1010,7 @@ fn main() {
10101010
```
10111011

10121012
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.
10141014
* Mark structs as [`#[non_exhaustive]`][non_exhaustive] when first introducing
10151015
a struct to prevent users from using struct literal syntax, and instead
10161016
provide a constructor method and/or [Default] implementation.

src/doc/src/reference/unstable.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ cargo +nightly -Ztarget-applies-to-host build --target x86_64-unknown-linux-gnu
594594
* Original Pull Request: [#9322](https://github.com/rust-lang/cargo/pull/9322)
595595
* Tracking Issue: [#9452](https://github.com/rust-lang/cargo/issues/9452)
596596

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
598598
such as build scripts that must run on the host system instead of the target
599599
system when cross compiling. It supports both generic and host arch specific
600600
tables. Matching host arch tables take precedence over generic host tables.
@@ -614,7 +614,7 @@ rustflags = ["-Clink-arg=--verbose"]
614614
linker = "/path/to/target/linker"
615615
```
616616

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
618618
`x86_64-unknown-linux-gnu` host as the `host.x86_64-unknown-linux-gnu` table
619619
takes precedence.
620620

0 commit comments

Comments
 (0)