Skip to content

Commit c9a55fe

Browse files
committed
Spell check librustc_error_codes
Found one wrongly spelled error message and decided to check all the error messages for wrongly spelled statements. Signed-off-by: wcampbell <[email protected]>
1 parent 87540bd commit c9a55fe

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/librustc_error_codes/error_codes/E0038.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ type parameters, the number of monomorphized implementations the compiler
136136
generates does not grow drastically, since the compiler will only generate an
137137
implementation if the function is called with unparametrized substitutions
138138
(i.e., substitutions where none of the substituted types are themselves
139-
parametrized).
139+
parameterized).
140140

141141
However, with trait objects we have to make a table containing _every_ object
142142
that implements the trait. Now, if it has type parameters, we need to add

src/librustc_error_codes/error_codes/E0084.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ enum NightsWatch {
2020
}
2121
```
2222

23-
or you remove the integer represention of your enum:
23+
or you remove the integer representation of your enum:
2424

2525
```
2626
enum NightsWatch {}

src/librustc_error_codes/error_codes/E0307.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl Trait for Foo {
3636
}
3737
```
3838

39-
E0307 will be emitted by the compiler when using an invalid reciver type,
39+
E0307 will be emitted by the compiler when using an invalid receiver type,
4040
like in the following example:
4141

4242
```compile_fail,E0307

src/librustc_error_codes/error_codes/E0373.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Since our new thread runs in parallel, the stack frame containing `x` and `y`
3131
may well have disappeared by the time we try to use them. Even if we call
3232
`thr.join()` within foo (which blocks until `thr` has completed, ensuring the
3333
stack frame won't disappear), we will not succeed: the compiler cannot prove
34-
that this behaviour is safe, and so won't let us do it.
34+
that this behavior is safe, and so won't let us do it.
3535

3636
The solution to this problem is usually to switch to using a `move` closure.
3737
This approach moves (or copies, where possible) data into the closure, rather

src/librustc_error_codes/error_codes/E0426.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ loop {
88
}
99
```
1010

11-
Please verify you spelt or declare the label correctly. Example:
11+
Please verify you spelled or declared the label correctly. Example:
1212

1313
```
1414
'a: loop {

0 commit comments

Comments
 (0)