Skip to content

Commit c7104be

Browse files
committed
Fix typos & us spellings
1 parent 82be83c commit c7104be

File tree

47 files changed

+59
-59
lines changed

Some content is hidden

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

47 files changed

+59
-59
lines changed

src/bootstrap/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ impl Build {
444444
}
445445

446446
/// Returns the root output directory for all Cargo output in a given stage,
447-
/// running a particular compiler, wehther or not we're building the
447+
/// running a particular compiler, whether or not we're building the
448448
/// standard library, and targeting the specified architecture.
449449
fn cargo_out(&self,
450450
compiler: Compiler,

src/bootstrap/native.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//! Compilation of native dependencies like LLVM.
1212
//!
1313
//! Native projects like LLVM unfortunately aren't suited just yet for
14-
//! compilation in build scripts that Cargo has. This is because thie
14+
//! compilation in build scripts that Cargo has. This is because the
1515
//! compilation takes a *very* long time but also because we don't want to
1616
//! compile LLVM 3 times as part of a normal bootstrap (we want it cached).
1717
//!

src/liballoc/allocator.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ impl Layout {
293293
/// Creates a layout describing the record for `self` followed by
294294
/// `next` with no additional padding between the two. Since no
295295
/// padding is inserted, the alignment of `next` is irrelevant,
296-
/// and is not incoporated *at all* into the resulting layout.
296+
/// and is not incorporated *at all* into the resulting layout.
297297
///
298298
/// Returns `(k, offset)`, where `k` is layout of the concatenated
299299
/// record and `offset` is the relative location, in bytes, of the
@@ -528,7 +528,7 @@ pub unsafe trait Alloc {
528528
/// to allocate that block of memory.
529529
unsafe fn dealloc(&mut self, ptr: *mut u8, layout: Layout);
530530

531-
/// Allocator-specific method for signalling an out-of-memory
531+
/// Allocator-specific method for signaling an out-of-memory
532532
/// condition.
533533
///
534534
/// `oom` aborts the thread or process, optionally performing
@@ -539,7 +539,7 @@ pub unsafe trait Alloc {
539539
/// unsatisfied allocation request (signaled by an error such as
540540
/// `AllocErr::Exhausted`), and wish to abandon computation rather
541541
/// than attempt to recover locally. Such clients should pass the
542-
/// signalling error value back into `oom`, where the allocator
542+
/// signaling error value back into `oom`, where the allocator
543543
/// may incorporate that error value into its diagnostic report
544544
/// before aborting.
545545
///

src/liballoc/btree/node.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ impl<Node: Copy, Type> Clone for Handle<Node, Type> {
763763
}
764764

765765
impl<Node, Type> Handle<Node, Type> {
766-
/// Retrieves the node that contains the edge of key/value pair this handle pointes to.
766+
/// Retrieves the node that contains the edge of key/value pair this handle points to.
767767
pub fn into_node(self) -> Node {
768768
self.node
769769
}

src/liballoc/raw_vec.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,12 +544,12 @@ impl<T, A: Alloc> RawVec<T, A> {
544544
/// Attempts to ensure that the buffer contains at least enough space to hold
545545
/// `used_cap + needed_extra_cap` elements. If it doesn't already have
546546
/// enough capacity, will reallocate in place enough space plus comfortable slack
547-
/// space to get amortized `O(1)` behaviour. Will limit this behaviour
547+
/// space to get amortized `O(1)` behavior. Will limit this behaviour
548548
/// if it would needlessly cause itself to panic.
549549
///
550550
/// If `used_cap` exceeds `self.cap()`, this may fail to actually allocate
551551
/// the requested space. This is not really unsafe, but the unsafe
552-
/// code *you* write that relies on the behaviour of this function may break.
552+
/// code *you* write that relies on the behavior of this function may break.
553553
///
554554
/// Returns true if the reallocation attempt has succeeded, or false otherwise.
555555
///

src/libcore/num/dec2flt/rawfp.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ pub trait RawFloat : Float + Copy + Debug + LowerExp
102102
/// The number of bits in the exponent.
103103
const EXP_BITS: u8;
104104

105-
/// The number of bits in the singificand, *including* the hidden bit.
105+
/// The number of bits in the significand, *including* the hidden bit.
106106
const SIG_BITS: u8;
107107

108-
/// The number of bits in the singificand, *excluding* the hidden bit.
108+
/// The number of bits in the significand, *excluding* the hidden bit.
109109
const EXPLICIT_SIG_BITS: u8;
110110

111111
/// The maximum legal exponent in fractional representation.
@@ -123,7 +123,7 @@ pub trait RawFloat : Float + Copy + Debug + LowerExp
123123
/// `MIN_EXP` for integral representation, i.e., with the shift applied.
124124
const MIN_EXP_INT: i16;
125125

126-
/// The maximum normalized singificand in integral representation.
126+
/// The maximum normalized significand in integral representation.
127127
const MAX_SIG: u64;
128128

129129
/// The minimal normalized significand in integral representation.

src/libcore/ops/try.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-
/// A trait for customizing the behaviour of the `?` operator.
11+
/// A trait for customizing the behavior of the `?` operator.
1212
///
1313
/// A type implementing `Try` is one that has a canonical way to view it
1414
/// in terms of a success/failure dichotomy. This trait allows both

src/libcore/sync/atomic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1632,7 +1632,7 @@ unsafe fn atomic_xor<T>(dst: *mut T, val: T, order: Ordering) -> T {
16321632
///
16331633
/// pub fn lock(&self) {
16341634
/// while !self.flag.compare_and_swap(false, true, Ordering::Relaxed) {}
1635-
/// // This fence syncronizes-with store in `unlock`.
1635+
/// // This fence synchronizes-with store in `unlock`.
16361636
/// fence(Ordering::Acquire);
16371637
/// }
16381638
///

src/libgraphviz/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//! Generate files suitable for use with [Graphviz](http://www.graphviz.org/)
1212
//!
1313
//! The `render` function generates output (e.g. an `output.dot` file) for
14-
//! use with [Graphviz](http://www.graphviz.org/) by walking a labelled
14+
//! use with [Graphviz](http://www.graphviz.org/) by walking a labeled
1515
//! graph. (Graphviz can then automatically lay out the nodes and edges
1616
//! of the graph, and also optionally render the graph as an image or
1717
//! other [output formats](
@@ -150,7 +150,7 @@
150150
//!
151151
//! The output from this example renders four nodes that make up the
152152
//! Hasse-diagram for the subsets of the set `{x, y}`. Each edge is
153-
//! labelled with the &sube; character (specified using the HTML character
153+
//! labeled with the &sube; character (specified using the HTML character
154154
//! entity `&sube`).
155155
//!
156156
//! ```rust
@@ -789,7 +789,7 @@ mod tests {
789789
}
790790

791791
struct LabelledGraph {
792-
/// The name for this graph. Used for labelling generated `digraph`.
792+
/// The name for this graph. Used for labeling generated `digraph`.
793793
name: &'static str,
794794

795795
/// Each node is an index into `node_labels`; these labels are

src/librand/distributions/gamma.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ impl IndependentSample<f64> for ChiSquared {
254254

255255
/// The Fisher F distribution `F(m, n)`.
256256
///
257-
/// This distribution is equivalent to the ratio of two normalised
257+
/// This distribution is equivalent to the ratio of two normalized
258258
/// chi-squared distributions, that is, `F(m,n) = (χ²(m)/m) /
259259
/// (χ²(n)/n)`.
260260
pub struct FisherF {

0 commit comments

Comments
 (0)