Skip to content

Commit 4972bea

Browse files
committed
fix typos in various places
1 parent d74b402 commit 4972bea

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+77
-77
lines changed

src/bootstrap/bootstrap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ def exe_suffix():
594594
return ''
595595

596596
def bootstrap_binary(self):
597-
"""Return the path of the boostrap binary
597+
"""Return the path of the bootstrap binary
598598
599599
>>> rb = RustBuild()
600600
>>> rb.build_dir = "build"

src/etc/lldb_rust_formatters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def print_std_string_val(val, internal_dict):
277277
#=--------------------------------------------------------------------------------------------------
278278

279279
def print_array_of_values(array_name, data_ptr_val, length, internal_dict):
280-
"""Prints a contigous memory range, interpreting it as values of the
280+
"""Prints a contiguous memory range, interpreting it as values of the
281281
pointee-type of data_ptr_val."""
282282

283283
data_ptr_type = data_ptr_val.type

src/liballoc/collections/btree/map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ use self::Entry::*;
7777
/// movie_reviews.insert("Office Space", "Deals with real issues in the workplace.");
7878
/// movie_reviews.insert("Pulp Fiction", "Masterpiece.");
7979
/// movie_reviews.insert("The Godfather", "Very enjoyable.");
80-
/// movie_reviews.insert("The Blues Brothers", "Eye lyked it alot.");
80+
/// movie_reviews.insert("The Blues Brothers", "Eye lyked it a lot.");
8181
///
8282
/// // check for a specific one.
8383
/// if !movie_reviews.contains_key("Les Misérables") {

src/libcore/alloc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ pub unsafe trait GlobalAlloc {
518518
/// The block is described by the given `ptr` pointer and `layout`.
519519
///
520520
/// If this returns a non-null pointer, then ownership of the memory block
521-
/// referenced by `ptr` has been transferred to this alloctor.
521+
/// referenced by `ptr` has been transferred to this allocator.
522522
/// The memory may or may not have been deallocated,
523523
/// and should be considered unusable (unless of course it was
524524
/// transferred back to the caller again via the return value of

src/libcore/intrinsics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1025,7 +1025,7 @@ extern "rust-intrinsic" {
10251025
/// // to avoid problems in case something further down panics.
10261026
/// src.set_len(0);
10271027
///
1028-
/// // The two regions cannot overlap becuase mutable references do
1028+
/// // The two regions cannot overlap because mutable references do
10291029
/// // not alias, and two different vectors cannot own the same
10301030
/// // memory.
10311031
/// ptr::copy_nonoverlapping(src_ptr, dst_ptr, src_len);

src/libcore/pin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ pub use marker::Unpin;
102102
/// value in place, preventing the value referenced by that pointer from being moved
103103
/// unless it implements [`Unpin`].
104104
///
105-
/// See the [`pin` module] documentation for furthur explanation on pinning.
105+
/// See the [`pin` module] documentation for further explanation on pinning.
106106
///
107107
/// [`Unpin`]: ../../std/marker/trait.Unpin.html
108108
/// [`pin` module]: ../../std/pin/index.html

src/libcore/ptr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
//! underlying object is live and no reference (just raw pointers) is used to
3939
//! access the same memory.
4040
//!
41-
//! These axioms, along with careful use of [`offset`] for pointer arithmentic,
41+
//! These axioms, along with careful use of [`offset`] for pointer arithmetic,
4242
//! are enough to correctly implement many useful things in unsafe code. Stronger guarantees
4343
//! will be provided eventually, as the [aliasing] rules are being determined. For more
4444
//! information, see the [book] as well as the section in the reference devoted

src/librustc/hir/def_id.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ impl ::std::fmt::Debug for CrateNum {
4040
match self {
4141
CrateNum::Index(id) => write!(fmt, "crate{}", id.private),
4242
CrateNum::Invalid => write!(fmt, "invalid crate"),
43-
CrateNum::BuiltinMacros => write!(fmt, "bultin macros crate"),
43+
CrateNum::BuiltinMacros => write!(fmt, "builtin macros crate"),
4444
CrateNum::ReservedForIncrCompCache => write!(fmt, "crate for decoding incr comp cache"),
4545
}
4646
}
@@ -101,7 +101,7 @@ impl fmt::Display for CrateNum {
101101
match self {
102102
CrateNum::Index(id) => fmt::Display::fmt(&id.private, f),
103103
CrateNum::Invalid => write!(f, "invalid crate"),
104-
CrateNum::BuiltinMacros => write!(f, "bultin macros crate"),
104+
CrateNum::BuiltinMacros => write!(f, "builtin macros crate"),
105105
CrateNum::ReservedForIncrCompCache => write!(f, "crate for decoding incr comp cache"),
106106
}
107107
}

src/librustc/mir/interpret/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ pub fn read_target_uint(endianness: layout::Endian, mut source: &[u8]) -> Result
632632
}
633633

634634
////////////////////////////////////////////////////////////////////////////////
635-
// Methods to faciliate working with signed integers stored in a u128
635+
// Methods to facilitate working with signed integers stored in a u128
636636
////////////////////////////////////////////////////////////////////////////////
637637

638638
pub fn sign_extend(value: u128, size: Size) -> u128 {

src/librustc/mir/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ pub enum BorrowKind {
469469
/// }
470470
///
471471
/// This can't be a shared borrow because mutably borrowing (*x as Some).0
472-
/// should not prevent `if let None = x { ... }`, for example, becase the
472+
/// should not prevent `if let None = x { ... }`, for example, because the
473473
/// mutating `(*x as Some).0` can't affect the discriminant of `x`.
474474
/// We can also report errors with this kind of borrow differently.
475475
Shallow,

0 commit comments

Comments
 (0)