Skip to content

Fix some typos #23830

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 30, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ case $CFG_OSTYPE in
CFG_OSTYPE=pc-windows-gnu
;;

# Thad's Cygwin identifers below
# Thad's Cygwin identifiers below

# Vista 32 bit
CYGWIN_NT-6.0)
Expand Down
2 changes: 1 addition & 1 deletion mk/platform.mk
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ define CFG_MAKE_TOOLCHAIN

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

# On Bitrig, we need the relocation model to be PIC for everthing
# On Bitrig, we need the relocation model to be PIC for everything
ifeq (,$(filter $(OSTYPE_$(1)),bitrig))
LLVM_MC_RELOCATION_MODEL="pic"
else
Expand Down
2 changes: 1 addition & 1 deletion mk/target.mk
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ endef
# on $$(TSREQ$(1)_T_$(2)_H_$(3)), to ensure that no products will be
# put into the target area until after the get-snapshot.py script has
# had its chance to clean it out; otherwise the other products will be
# inadvertantly included in the clean out.
# inadvertently included in the clean out.
SNAPSHOT_RUSTC_POST_CLEANUP=$(HBIN0_H_$(CFG_BUILD))/rustc$(X_$(CFG_BUILD))

define TARGET_HOST_RULES
Expand Down
2 changes: 1 addition & 1 deletion src/doc/trpl/associated-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ let obj = Box::new(graph) as Box<Graph>;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```

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

```rust
Expand Down
2 changes: 1 addition & 1 deletion src/doc/trpl/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ This will create documentation for bar both inside the documentation for the
crate `foo`, as well as the documentation for your crate. It will use the same
documentation in both places.

This behavior can be supressed with `no_inline`:
This behavior can be suppressed with `no_inline`:

```ignore
extern crate foo;
Expand Down
4 changes: 2 additions & 2 deletions src/etc/rustup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ case $CFG_OSTYPE in
MINGW32*)
CFG_OSTYPE=pc-mingw32
;;
# Thad's Cygwin identifers below
# Thad's Cygwin identifiers below

# Vista 32 bit
CYGWIN_NT-6.0)
Expand Down Expand Up @@ -437,7 +437,7 @@ CFG_TMP_DIR=$(mktemp -d 2>/dev/null \
|| create_tmp_dir)

# If we're saving nightlies and we didn't specify which one, grab the latest
# verison from the perspective of the server. Buildbot has typically finished
# version from the perspective of the server. Buildbot has typically finished
# building and uploading by ~8UTC, but we want to include a little buffer.
#
# FIXME It would be better to use the known most recent nightly that has been
Expand Down
2 changes: 1 addition & 1 deletion src/libcore/marker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ pub struct InvariantType<T>;
/// particular, thanks to the `Reflect` bound, callers know that a
/// function declared like `fn bar<T>(...)` will always act in
/// precisely the same way no matter what type `T` is supplied,
/// beacuse there are no bounds declared on `T`. (The ability for a
/// because there are no bounds declared on `T`. (The ability for a
/// caller to reason about what a function may do based solely on what
/// generic bounds are declared is often called the ["parametricity
/// property"][1].)
Expand Down
2 changes: 1 addition & 1 deletion src/librbml/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
//! - `Sub32` (`0d`): 4-byte unsigned integer for supplementary information.
//! Those two tags normally occur as the first subdocument of certain tags,
//! namely `Enum`, `Vec` and `Map`, to provide a variant or size information.
//! They can be used interchangably.
//! They can be used interchangeably.
//!
//! Predefined tags with an explicit length:
//!
Expand Down
2 changes: 1 addition & 1 deletion src/librustc_back/target/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ pub struct TargetOptions {
/// particular running dsymutil and some other stuff like `-dead_strip`. Defaults to false.
pub is_like_osx: bool,
/// Whether the target toolchain is like Windows'. Only useful for compiling against Windows,
/// only realy used for figuring out how to find libraries, since Windows uses its own
/// only really used for figuring out how to find libraries, since Windows uses its own
/// library naming convention. Defaults to false.
pub is_like_windows: bool,
/// Whether the target toolchain is like Android's. Only useful for compiling against Android.
Expand Down
2 changes: 1 addition & 1 deletion src/librustdoc/stability_summary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ impl Ord for ModuleSummary {
}
}

// is the item considered publically visible?
// is the item considered publicly visible?
fn visible(item: &Item) -> bool {
match item.inner {
ImplItem(_) => true,
Expand Down
2 changes: 1 addition & 1 deletion src/libstd/fs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1511,7 +1511,7 @@ mod tests {
assert_eq!(v, b"foobar\0\0\0\0".to_vec());

// Truncate to a smaller length, don't seek, and then write something.
// Ensure that the intermediate zeroes are all filled in (we're seeked
// Ensure that the intermediate zeroes are all filled in (we have `seek`ed
// past the end of the file).
check!(file.set_len(2));
assert_eq!(check!(file.metadata()).len(), 2);
Expand Down
2 changes: 1 addition & 1 deletion src/libstd/old_io/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1532,7 +1532,7 @@ mod test {
b"foobar\0\0\0\0".to_vec());

// Truncate to a smaller length, don't seek, and then write something.
// Ensure that the intermediate zeroes are all filled in (we're seeked
// Ensure that the intermediate zeroes are all filled in (we have `seek`ed
// past the end of the file).
check!(file.truncate(2));
assert_eq!(check!(file.stat()).size, 2);
Expand Down
2 changes: 1 addition & 1 deletion src/test/compile-fail/issue-9814.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

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

enum Foo { Bar(isize) }
Expand Down
2 changes: 1 addition & 1 deletion src/test/debuginfo/generic-struct-style-enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ enum Univariant<T> {

fn main() {

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

Expand Down
2 changes: 1 addition & 1 deletion src/test/debuginfo/generic-tuple-style-enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ enum Univariant<T64> {

fn main() {

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

Expand Down
2 changes: 1 addition & 1 deletion src/test/debuginfo/struct-in-enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ enum Univariant {

fn main() {

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

Expand Down
2 changes: 1 addition & 1 deletion src/test/debuginfo/struct-style-enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ enum Univariant {

fn main() {

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

Expand Down
2 changes: 1 addition & 1 deletion src/test/debuginfo/tuple-style-enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ enum Univariant {

fn main() {

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

Expand Down
2 changes: 1 addition & 1 deletion src/test/debuginfo/unique-enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ enum Univariant {

fn main() {

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

Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make/pretty-print-path-suffix/foo_method.pp
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@



fn foo_method(&self) -> &'static str { return "i am very similiar to foo."; }
fn foo_method(&self) -> &'static str { return "i am very similar to foo."; }
/* nest::S::foo_method */
2 changes: 1 addition & 1 deletion src/test/run-make/pretty-print-path-suffix/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub mod nest {
struct S;
impl S {
fn foo_method(&self) -> &'static str {
return "i am very similiar to foo.";
return "i am very similar to foo.";
}
}
}
2 changes: 1 addition & 1 deletion src/test/run-pass/core-run-destroy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ pub fn sleeper() -> Process {

fn test_destroy_twice() {
let mut p = sleeper();
succeed!(p.signal_exit()); // this shouldnt crash...
succeed!(p.signal_exit()); // this shouldn't crash...
let _ = p.signal_exit(); // ...and nor should this (and nor should the destructor)
}

Expand Down
2 changes: 1 addition & 1 deletion src/test/run-pass/issue-23485.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

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