Skip to content

Commit d8be84e

Browse files
committed
Auto merge of #23830 - petrochenkov:spellcheck, r=steveklabnik
With help of https://github.com/lucasdemarchi/codespell r? @steveklabnik
2 parents 92f3d9a + 1accaa9 commit d8be84e

23 files changed

+24
-24
lines changed

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ case $CFG_OSTYPE in
404404
CFG_OSTYPE=pc-windows-gnu
405405
;;
406406

407-
# Thad's Cygwin identifers below
407+
# Thad's Cygwin identifiers below
408408

409409
# Vista 32 bit
410410
CYGWIN_NT-6.0)

mk/platform.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ define CFG_MAKE_TOOLCHAIN
179179

180180
ifeq ($$(findstring $(HOST_$(1)),arm aarch64 mips mipsel powerpc),)
181181

182-
# On Bitrig, we need the relocation model to be PIC for everthing
182+
# On Bitrig, we need the relocation model to be PIC for everything
183183
ifeq (,$(filter $(OSTYPE_$(1)),bitrig))
184184
LLVM_MC_RELOCATION_MODEL="pic"
185185
else

mk/target.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ endef
132132
# on $$(TSREQ$(1)_T_$(2)_H_$(3)), to ensure that no products will be
133133
# put into the target area until after the get-snapshot.py script has
134134
# had its chance to clean it out; otherwise the other products will be
135-
# inadvertantly included in the clean out.
135+
# inadvertently included in the clean out.
136136
SNAPSHOT_RUSTC_POST_CLEANUP=$(HBIN0_H_$(CFG_BUILD))/rustc$(X_$(CFG_BUILD))
137137

138138
define TARGET_HOST_RULES

src/doc/trpl/associated-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ let obj = Box::new(graph) as Box<Graph>;
170170
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
171171
```
172172

173-
We can’t create a trait object like this, becuase we don’t know the associated
173+
We can’t create a trait object like this, because we don’t know the associated
174174
types. Instead, we can write this:
175175

176176
```rust

src/doc/trpl/documentation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ This will create documentation for bar both inside the documentation for the
529529
crate `foo`, as well as the documentation for your crate. It will use the same
530530
documentation in both places.
531531

532-
This behavior can be supressed with `no_inline`:
532+
This behavior can be suppressed with `no_inline`:
533533

534534
```ignore
535535
extern crate foo;

src/etc/rustup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ case $CFG_OSTYPE in
335335
MINGW32*)
336336
CFG_OSTYPE=pc-mingw32
337337
;;
338-
# Thad's Cygwin identifers below
338+
# Thad's Cygwin identifiers below
339339

340340
# Vista 32 bit
341341
CYGWIN_NT-6.0)
@@ -437,7 +437,7 @@ CFG_TMP_DIR=$(mktemp -d 2>/dev/null \
437437
|| create_tmp_dir)
438438

439439
# If we're saving nightlies and we didn't specify which one, grab the latest
440-
# verison from the perspective of the server. Buildbot has typically finished
440+
# version from the perspective of the server. Buildbot has typically finished
441441
# building and uploading by ~8UTC, but we want to include a little buffer.
442442
#
443443
# FIXME It would be better to use the known most recent nightly that has been

src/libcore/marker.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ pub struct InvariantType<T>;
476476
/// particular, thanks to the `Reflect` bound, callers know that a
477477
/// function declared like `fn bar<T>(...)` will always act in
478478
/// precisely the same way no matter what type `T` is supplied,
479-
/// beacuse there are no bounds declared on `T`. (The ability for a
479+
/// because there are no bounds declared on `T`. (The ability for a
480480
/// caller to reason about what a function may do based solely on what
481481
/// generic bounds are declared is often called the ["parametricity
482482
/// property"][1].)

src/librbml/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
//! - `Sub32` (`0d`): 4-byte unsigned integer for supplementary information.
8484
//! Those two tags normally occur as the first subdocument of certain tags,
8585
//! namely `Enum`, `Vec` and `Map`, to provide a variant or size information.
86-
//! They can be used interchangably.
86+
//! They can be used interchangeably.
8787
//!
8888
//! Predefined tags with an explicit length:
8989
//!

src/librustc_back/target/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ pub struct TargetOptions {
157157
/// particular running dsymutil and some other stuff like `-dead_strip`. Defaults to false.
158158
pub is_like_osx: bool,
159159
/// Whether the target toolchain is like Windows'. Only useful for compiling against Windows,
160-
/// only realy used for figuring out how to find libraries, since Windows uses its own
160+
/// only really used for figuring out how to find libraries, since Windows uses its own
161161
/// library naming convention. Defaults to false.
162162
pub is_like_windows: bool,
163163
/// Whether the target toolchain is like Android's. Only useful for compiling against Android.

src/librustdoc/stability_summary.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ impl Ord for ModuleSummary {
8686
}
8787
}
8888

89-
// is the item considered publically visible?
89+
// is the item considered publicly visible?
9090
fn visible(item: &Item) -> bool {
9191
match item.inner {
9292
ImplItem(_) => true,

src/libstd/fs/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1511,7 +1511,7 @@ mod tests {
15111511
assert_eq!(v, b"foobar\0\0\0\0".to_vec());
15121512

15131513
// Truncate to a smaller length, don't seek, and then write something.
1514-
// Ensure that the intermediate zeroes are all filled in (we're seeked
1514+
// Ensure that the intermediate zeroes are all filled in (we have `seek`ed
15151515
// past the end of the file).
15161516
check!(file.set_len(2));
15171517
assert_eq!(check!(file.metadata()).len(), 2);

src/libstd/old_io/fs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1532,7 +1532,7 @@ mod test {
15321532
b"foobar\0\0\0\0".to_vec());
15331533

15341534
// Truncate to a smaller length, don't seek, and then write something.
1535-
// Ensure that the intermediate zeroes are all filled in (we're seeked
1535+
// Ensure that the intermediate zeroes are all filled in (we have `seek`ed
15361536
// past the end of the file).
15371537
check!(file.truncate(2));
15381538
assert_eq!(check!(file.stat()).size, 2);

src/test/compile-fail/issue-9814.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// Verify that single-variant enums cant be de-referenced
11+
// Verify that single-variant enums can't be de-referenced
1212
// Regression test for issue #9814
1313

1414
enum Foo { Bar(isize) }

src/test/debuginfo/generic-struct-style-enum.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ enum Univariant<T> {
5353

5454
fn main() {
5555

56-
// In order to avoid endianess trouble all of the following test values consist of a single
56+
// In order to avoid endianness trouble all of the following test values consist of a single
5757
// repeated byte. This way each interpretation of the union should look the same, no matter if
5858
// this is a big or little endian machine.
5959

src/test/debuginfo/generic-tuple-style-enum.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ enum Univariant<T64> {
7171

7272
fn main() {
7373

74-
// In order to avoid endianess trouble all of the following test values consist of a single
74+
// In order to avoid endianness trouble all of the following test values consist of a single
7575
// repeated byte. This way each interpretation of the union should look the same, no matter if
7676
// this is a big or little endian machine.
7777

src/test/debuginfo/struct-in-enum.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ enum Univariant {
6666

6767
fn main() {
6868

69-
// In order to avoid endianess trouble all of the following test values consist of a single
69+
// In order to avoid endianness trouble all of the following test values consist of a single
7070
// repeated byte. This way each interpretation of the union should look the same, no matter if
7171
// this is a big or little endian machine.
7272

src/test/debuginfo/struct-style-enum.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ enum Univariant {
6868

6969
fn main() {
7070

71-
// In order to avoid endianess trouble all of the following test values consist of a single
71+
// In order to avoid endianness trouble all of the following test values consist of a single
7272
// repeated byte. This way each interpretation of the union should look the same, no matter if
7373
// this is a big or little endian machine.
7474

src/test/debuginfo/tuple-style-enum.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ enum Univariant {
6868

6969
fn main() {
7070

71-
// In order to avoid endianess trouble all of the following test values consist of a single
71+
// In order to avoid endianness trouble all of the following test values consist of a single
7272
// repeated byte. This way each interpretation of the union should look the same, no matter if
7373
// this is a big or little endian machine.
7474

src/test/debuginfo/unique-enum.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ enum Univariant {
5959

6060
fn main() {
6161

62-
// In order to avoid endianess trouble all of the following test values consist of a single
62+
// In order to avoid endianness trouble all of the following test values consist of a single
6363
// repeated byte. This way each interpretation of the union should look the same, no matter if
6464
// this is a big or little endian machine.
6565

src/test/run-make/pretty-print-path-suffix/foo_method.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212

1313

1414

15-
fn foo_method(&self) -> &'static str { return "i am very similiar to foo."; }
15+
fn foo_method(&self) -> &'static str { return "i am very similar to foo."; }
1616
/* nest::S::foo_method */

src/test/run-make/pretty-print-path-suffix/input.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub mod nest {
2222
struct S;
2323
impl S {
2424
fn foo_method(&self) -> &'static str {
25-
return "i am very similiar to foo.";
25+
return "i am very similar to foo.";
2626
}
2727
}
2828
}

src/test/run-pass/core-run-destroy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pub fn sleeper() -> Process {
5252

5353
fn test_destroy_twice() {
5454
let mut p = sleeper();
55-
succeed!(p.signal_exit()); // this shouldnt crash...
55+
succeed!(p.signal_exit()); // this shouldn't crash...
5656
let _ = p.signal_exit(); // ...and nor should this (and nor should the destructor)
5757
}
5858

src/test/run-pass/issue-23485.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// Test for an ICE that occured when a default method implementation
11+
// Test for an ICE that occurred when a default method implementation
1212
// was applied to a type that did not meet the prerequisites. The
1313
// problem occurred specifically because normalizing
1414
// `Self::Item::Target` was impossible in this case.

0 commit comments

Comments
 (0)