Skip to content

Commit 0a2c0ec

Browse files
authored
Rollup merge of #110423 - jsoref:spelling-srcdoc, r=Nilstrieb
Spelling srcdoc
2 parents 902b419 + b1da6a7 commit 0a2c0ec

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

src/doc/rustc/src/instrument-coverage.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ $ ls formatjson5.profraw
117117
formatjson5.profraw
118118
```
119119

120-
If `LLVM_PROFILE_FILE` contains a path to a non-existent directory, the missing directory structure will be created. Additionally, the following special pattern strings are rewritten:
120+
If `LLVM_PROFILE_FILE` contains a path to a nonexistent directory, the missing directory structure will be created. Additionally, the following special pattern strings are rewritten:
121121

122122
- `%p` - The process ID.
123123
- `%h` - The hostname of the machine running the program.

src/doc/rustc/src/json.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Diagnostics have the following format:
6161
/* The file where the span is located.
6262
Note that this path may not exist. For example, if the path
6363
points to the standard library, and the rust src is not
64-
available in the sysroot, then it may point to a non-existent
64+
available in the sysroot, then it may point to a nonexistent
6565
file. Beware that this may also point to the source of an
6666
external crate.
6767
*/

src/doc/rustc/src/platform-support/armv7-unknown-linux-uclibceabi.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ After completing these steps you can use rust normally in a native environment.
6666

6767
To cross compile, you'll need to:
6868

69-
* Build the rust cross toochain using [rust-bootstrap-armv7-unknown-linux-uclibceabi](https://github.com/lancethepants/rust-bootstrap-armv7-unknown-linux-uclibceabi) or your own built toolchain.
69+
* Build the rust cross toolchain using [rust-bootstrap-armv7-unknown-linux-uclibceabi](https://github.com/lancethepants/rust-bootstrap-armv7-unknown-linux-uclibceabi) or your own built toolchain.
7070
* Link your built toolchain with
7171

7272
```text

src/doc/rustc/src/platform-support/unknown-uefi.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ There are 3 common ways to compile native C code for UEFI targets:
123123
targets. Be wary of any includes that are not specifically suitable for UEFI
124124
targets (especially the C standard library includes are not always
125125
compatible). Freestanding compilations are recommended to avoid
126-
incompatibilites.
126+
incompatibilities.
127127

128128
## Ecosystem
129129

src/doc/style-guide/src/principles.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ following principles (in rough priority order):
66
* readability
77
- scan-ability
88
- avoiding misleading formatting
9-
- accessibility - readable and editable by users using the the widest
9+
- accessibility - readable and editable by users using the widest
1010
variety of hardware, including non-visual accessibility interfaces
1111
- readability of code in contexts without syntax highlighting or IDE
1212
assistance, such as rustc error messages, diffs, grep, and other

src/doc/style-guide/src/types.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* `[T; expr]`, e.g., `[u32; 42]`, `[Vec<Foo>; 10 * 2 + foo()]` (space after colon, no spaces around square brackets)
77
* `*const T`, `*mut T` (no space after `*`, space before type)
88
* `&'a T`, `&T`, `&'a mut T`, `&mut T` (no space after `&`, single spaces separating other words)
9-
* `unsafe extern "C" fn<'a, 'b, 'c>(T, U, V) -> W` or `fn()` (single spaces around keyowrds and sigils, and after commas, no trailing commas, no spaces around brackets)
9+
* `unsafe extern "C" fn<'a, 'b, 'c>(T, U, V) -> W` or `fn()` (single spaces around keywords and sigils, and after commas, no trailing commas, no spaces around brackets)
1010
* `!` should be treated like any other type name, `Name`
1111
* `(A, B, C, D)` (spaces after commas, no spaces around parens, no trailing comma unless it is a one-tuple)
1212
* `<Baz<T> as SomeTrait>::Foo::Bar` or `Foo::Bar` or `::Foo::Bar` (no spaces around `::` or angle brackets, single spaces around `as`)

src/doc/unstable-book/src/compiler-flags/check-cfg.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,5 +202,5 @@ fn shoot_lasers() {}
202202
203203
#[cfg(feature = "monkeys")] // This is UNEXPECTED, because "monkeys" is not in
204204
// the values(feature) list
205-
fn write_shakespear() {}
205+
fn write_shakespeare() {}
206206
```

src/doc/unstable-book/src/compiler-flags/move-size-limit.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ The `-Zmove-size-limit=N` compiler flag enables `large_assignments` lints which
66
will warn when moving objects whose size exceeds `N` bytes.
77

88
Lint warns only about moves in functions that participate in code generation.
9-
Consequently it will be ineffective for compiler invocatation that emit
9+
Consequently it will be ineffective for compiler invocation that emit
1010
metadata only, i.e., `cargo check` like workflows.

src/doc/unstable-book/src/language-features/transparent-unions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ pub union GenericUnion<T: Copy> { // Unions with non-`Copy` fields are unstable.
6565
pub const THIS_IS_OKAY: GenericUnion<()> = GenericUnion { field: () };
6666
```
6767

68-
Like transarent `struct`s, a transparent `union` of type `U` has the same
68+
Like transparent `struct`s, a transparent `union` of type `U` has the same
6969
layout, size, and ABI as its single non-ZST field. If it is generic over a type
7070
`T`, and all its fields are ZSTs except for exactly one field of type `T`, then
7171
it has the same layout and ABI as `T` (even if `T` is a ZST when monomorphized).

0 commit comments

Comments
 (0)