diff options
| author | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2024-04-15 16:56:14 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-15 16:56:14 +0100 |
| commit | 4d2a8e3692d2ddfa932c559b1c916d6780b790e1 (patch) | |
| tree | cdf7180b0f14eea6d8126d5d85c181ea627e8c47 /src | |
| parent | 2074631732cbe9601996f1ea3fddb70e4d0f81d3 (diff) | |
| parent | 7d1ee8c0fbba7649153d084da2897b4ac7093d51 (diff) | |
| download | rust-4d2a8e3692d2ddfa932c559b1c916d6780b790e1.tar.gz rust-4d2a8e3692d2ddfa932c559b1c916d6780b790e1.zip | |
Rollup merge of #123666 - mountcount:master, r=lqd
Fix some typos in doc
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc/unstable-book/src/compiler-flags/check-cfg.md | 4 | ||||
| -rw-r--r-- | src/doc/unstable-book/src/compiler-flags/shell-argfiles.md | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/doc/unstable-book/src/compiler-flags/check-cfg.md b/src/doc/unstable-book/src/compiler-flags/check-cfg.md index 90a006b0a1e..836929aba0b 100644 --- a/src/doc/unstable-book/src/compiler-flags/check-cfg.md +++ b/src/doc/unstable-book/src/compiler-flags/check-cfg.md @@ -37,7 +37,7 @@ present in the list of expected values. If `"value"` is not in it, then `rustc` the future.* To check for the _none_ value (ie `#[cfg(foo)]`) one can use the `none()` predicate inside -`values()`: `values(none())`. It can be followed or precessed by any number of `"value"`. +`values()`: `values(none())`. It can be followed or preceded by any number of `"value"`. To enable checking of values, but to provide an *none*/empty set of expected values (ie. expect `#[cfg(name)]`), use these forms: @@ -163,7 +163,7 @@ fn poke_platypus() {} fn tame_lion() {} #[cfg(windows = "unix")] // This condition is UNEXPECTED, as while 'windows' is a well known - // condition name, it doens't expect any values + // condition name, it doesn't expect any values fn tame_windows() {} ``` diff --git a/src/doc/unstable-book/src/compiler-flags/shell-argfiles.md b/src/doc/unstable-book/src/compiler-flags/shell-argfiles.md index 4f3c780972d..9e765301206 100644 --- a/src/doc/unstable-book/src/compiler-flags/shell-argfiles.md +++ b/src/doc/unstable-book/src/compiler-flags/shell-argfiles.md @@ -8,4 +8,4 @@ arguments from argfiles specified with `@shell:<path>`. Because this feature controls the parsing of input arguments, the `-Zshell-argfiles` flag must be present before the argument specifying the -shell-style arguemnt file. +shell-style argument file. |
