Skip to content

Commit 47cb3c5

Browse files
committed
Fix some typos
1 parent 2ac5f7d commit 47cb3c5

File tree

21 files changed

+24
-24
lines changed

21 files changed

+24
-24
lines changed

src/liballoc/allocator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ fn size_align<T>() -> (usize, usize) {
4040
///
4141
/// (Note however that layouts are *not* required to have positive
4242
/// size, even though many allocators require that all memory
43-
/// requeusts have positive size. A caller to the `Alloc::alloc`
43+
/// requests have positive size. A caller to the `Alloc::alloc`
4444
/// method must either ensure that conditions like this are met, or
4545
/// use specific allocators with looser requirements.)
4646
#[derive(Clone, Debug, PartialEq, Eq)]

src/liballoc/btree/node.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ impl<K, V> InternalNode<K, V> {
132132

133133
/// An owned pointer to a node. This basically is either `Box<LeafNode<K, V>>` or
134134
/// `Box<InternalNode<K, V>>`. However, it contains no information as to which of the two types
135-
/// of nodes is acutally behind the box, and, partially due to this lack of information, has no
135+
/// of nodes is actually behind the box, and, partially due to this lack of information, has no
136136
/// destructor.
137137
struct BoxedNode<K, V> {
138138
ptr: Unique<LeafNode<K, V>>
@@ -264,7 +264,7 @@ impl<K, V> Root<K, V> {
264264
// correct variance.
265265
/// A reference to a node.
266266
///
267-
/// This type has a number of paramaters that controls how it acts:
267+
/// This type has a number of parameters that controls how it acts:
268268
/// - `BorrowType`: This can be `Immut<'a>` or `Mut<'a>` for some `'a` or `Owned`.
269269
/// When this is `Immut<'a>`, the `NodeRef` acts roughly like `&'a Node`,
270270
/// when this is `Mut<'a>`, the `NodeRef` acts roughly like `&'a mut Node`,

src/libcore/iter/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,7 @@ unsafe impl<A, B> TrustedLen for Zip<A, B>
10351035
/// Now consider this twist where we add a call to `rev`. This version will
10361036
/// print `('c', 1), ('b', 2), ('a', 3)`. Note that the letters are reversed,
10371037
/// but the values of the counter still go in order. This is because `map()` is
1038-
/// still being called lazilly on each item, but we are popping items off the
1038+
/// still being called lazily on each item, but we are popping items off the
10391039
/// back of the vector now, instead of shifting them from the front.
10401040
///
10411041
/// ```rust

src/libcore/iter/traits.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ pub trait Extend<A> {
345345
/// In a similar fashion to the [`Iterator`] protocol, once a
346346
/// `DoubleEndedIterator` returns `None` from a `next_back()`, calling it again
347347
/// may or may not ever return `Some` again. `next()` and `next_back()` are
348-
/// interchangable for this purpose.
348+
/// interchangeable for this purpose.
349349
///
350350
/// [`Iterator`]: trait.Iterator.html
351351
///

src/libcore/num/dec2flt/algorithm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ pub fn algorithm_m<T: RawFloat>(f: &Big, e: i16) -> T {
336336
round_by_remainder(v, rem, q, z)
337337
}
338338

339-
/// Skip over most AlgorithmM iterations by checking the bit length.
339+
/// Skip over most Algorithm M iterations by checking the bit length.
340340
fn quick_start<T: RawFloat>(u: &mut Big, v: &mut Big, k: &mut i16) {
341341
// The bit length is an estimate of the base two logarithm, and log(u / v) = log(u) - log(v).
342342
// The estimate is off by at most 1, but always an under-estimate, so the error on log(u)

src/libcore/tests/num/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ assume_usize_width! {
566566
);
567567
}
568568

569-
/// Conversinos where neither the min nor the max of $source can be represented by
569+
/// Conversions where neither the min nor the max of $source can be represented by
570570
/// $target, but max/min of the target can be represented by the source.
571571
macro_rules! test_impl_try_from_signed_to_unsigned_err {
572572
($fn_name:ident, $source:ty, $target:ty) => {

src/librustc/traits/specialize/specialization_graph.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ use util::nodemap::{DefIdMap, FxHashMap};
3131
///
3232
/// - Parent extraction. In particular, the graph can give you the *immediate*
3333
/// parents of a given specializing impl, which is needed for extracting
34-
/// default items amongst other thigns. In the simple "chain" rule, every impl
34+
/// default items amongst other things. In the simple "chain" rule, every impl
3535
/// has at most one parent.
3636
pub struct Graph {
3737
// all impls have a parent; the "root" impls have as their parent the def_id

src/librustc/ty/adjustment.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use ty::subst::Substs;
2929
/// by `autoref`, to either a raw or borrowed pointer. In these cases unsize is
3030
/// `false`.
3131
///
32-
/// 2. A thin-to-fat coercon involves unsizing the underlying data. We start
32+
/// 2. A thin-to-fat coercion involves unsizing the underlying data. We start
3333
/// with a thin pointer, deref a number of times, unsize the underlying data,
3434
/// then autoref. The 'unsize' phase may change a fixed length array to a
3535
/// dynamically sized one, a concrete object to a trait object, or statically
@@ -52,7 +52,7 @@ use ty::subst::Substs;
5252
/// that case, we have the pointer we need coming in, so there are no
5353
/// autoderefs, and no autoref. Instead we just do the `Unsize` transformation.
5454
/// At some point, of course, `Box` should move out of the compiler, in which
55-
/// case this is analogous to transformating a struct. E.g., Box<[i32; 4]> ->
55+
/// case this is analogous to transforming a struct. E.g., Box<[i32; 4]> ->
5656
/// Box<[i32]> is an `Adjust::Unsize` with the target `Box<[i32]>`.
5757
#[derive(Clone, RustcEncodable, RustcDecodable)]
5858
pub struct Adjustment<'tcx> {

src/librustc_data_structures/stable_hasher.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ impl<W> Hasher for StableHasher<W> {
193193

194194

195195
/// Something that implements `HashStable<CTX>` can be hashed in a way that is
196-
/// stable across multiple compiliation sessions.
196+
/// stable across multiple compilation sessions.
197197
pub trait HashStable<CTX> {
198198
fn hash_stable<W: StableHasherResult>(&self,
199199
hcx: &mut CTX,

src/librustc_mir/dataflow/impls/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ impl<'a, 'tcx: 'a> HasMoveData<'tcx> for DefinitelyInitializedLvals<'a, 'tcx> {
212212
/// you if an l-value *might* be uninitialized at a given point in the
213213
/// control flow. But `MovingOutStatements` also includes the added
214214
/// data of *which* particular statement causing the deinitialization
215-
/// that the borrow checker's error meessage may need to report.
215+
/// that the borrow checker's error message may need to report.
216216
#[allow(dead_code)]
217217
pub struct MovingOutStatements<'a, 'tcx: 'a> {
218218
tcx: TyCtxt<'a, 'tcx, 'tcx>,

0 commit comments

Comments
 (0)