diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2018-08-19 15:30:23 +0200 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2018-08-19 17:41:28 +0200 |
| commit | 71120ef1e5cb885ee45e6148970db6ce93ce1aca (patch) | |
| tree | 9358c738c8943f0bc0b65303818237a801b8b0e1 /src/libcore | |
| parent | a9fe312b98d5a6b194c4ad1a17dcf258ba9941ea (diff) | |
| download | rust-71120ef1e5cb885ee45e6148970db6ce93ce1aca.tar.gz rust-71120ef1e5cb885ee45e6148970db6ce93ce1aca.zip | |
Fix typos found by codespell.
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/future/future_obj.rs | 4 | ||||
| -rw-r--r-- | src/libcore/ptr.rs | 2 | ||||
| -rw-r--r-- | src/libcore/slice/mod.rs | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/libcore/future/future_obj.rs b/src/libcore/future/future_obj.rs index 6045fac2b4b..2df870a011d 100644 --- a/src/libcore/future/future_obj.rs +++ b/src/libcore/future/future_obj.rs @@ -27,7 +27,7 @@ use task::{Context, Poll}; /// - The `Future` trait is currently not object safe: The `Future::poll` /// method makes uses the arbitrary self types feature and traits in which /// this feature is used are currently not object safe due to current compiler -/// limitations. (See tracking issue for arbitray self types for more +/// limitations. (See tracking issue for arbitrary self types for more /// information #44874) pub struct LocalFutureObj<'a, T> { ptr: *mut (), @@ -102,7 +102,7 @@ impl<'a, T> Drop for LocalFutureObj<'a, T> { /// - The `Future` trait is currently not object safe: The `Future::poll` /// method makes uses the arbitrary self types feature and traits in which /// this feature is used are currently not object safe due to current compiler -/// limitations. (See tracking issue for arbitray self types for more +/// limitations. (See tracking issue for arbitrary self types for more /// information #44874) pub struct FutureObj<'a, T>(LocalFutureObj<'a, T>); diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs index 61033e75112..86b27d91886 100644 --- a/src/libcore/ptr.rs +++ b/src/libcore/ptr.rs @@ -2291,7 +2291,7 @@ impl<T: ?Sized> *mut T { /// /// If we ever decide to make it possible to call the intrinsic with `a` that is not a /// power-of-two, it will probably be more prudent to just change to a naive implementation rather -/// than trying to adapt this to accomodate that change. +/// than trying to adapt this to accommodate that change. /// /// Any questions go to @nagisa. #[lang="align_offset"] diff --git a/src/libcore/slice/mod.rs b/src/libcore/slice/mod.rs index 88fdd767638..d61d93a85e4 100644 --- a/src/libcore/slice/mod.rs +++ b/src/libcore/slice/mod.rs @@ -1680,7 +1680,7 @@ impl<T> [T] { } } - /// Function to calculate lenghts of the middle and trailing slice for `align_to{,_mut}`. + /// Function to calculate lengths of the middle and trailing slice for `align_to{,_mut}`. fn align_to_offsets<U>(&self) -> (usize, usize) { // What we gonna do about `rest` is figure out what multiple of `U`s we can put in a // lowest number of `T`s. And how many `T`s we need for each such "multiple". @@ -1740,7 +1740,7 @@ impl<T> [T] { (us_len, ts_len) } - /// Transmute the slice to a slice of another type, ensuring aligment of the types is + /// Transmute the slice to a slice of another type, ensuring alignment of the types is /// maintained. /// /// This method splits the slice into three distinct slices: prefix, correctly aligned middle @@ -1792,7 +1792,7 @@ impl<T> [T] { } } - /// Transmute the slice to a slice of another type, ensuring aligment of the types is + /// Transmute the slice to a slice of another type, ensuring alignment of the types is /// maintained. /// /// This method splits the slice into three distinct slices: prefix, correctly aligned middle |
