Skip to content

Commit abe94f9

Browse files
committed
doc: correct spelling in documentation.
1 parent 1ad0cf5 commit abe94f9

File tree

23 files changed

+35
-36
lines changed

23 files changed

+35
-36
lines changed

doc/rust.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ a referencing source file, or by the name of the crate itself.
582582

583583
Each source file contains a sequence of zero or more `item` definitions,
584584
and may optionally begin with any number of `attributes` that apply to the containing module.
585-
Atributes on the anonymous crate module define important metadata that influences
585+
Attributes on the anonymous crate module define important metadata that influences
586586
the behavior of the compiler.
587587

588588
~~~~~~~~
@@ -1273,7 +1273,7 @@ since the typechecker checks that any type with an implementation of `Circle` al
12731273

12741274
In type-parameterized functions,
12751275
methods of the supertrait may be called on values of subtrait-bound type parameters.
1276-
Refering to the previous example of `trait Circle : Shape`:
1276+
Referring to the previous example of `trait Circle : Shape`:
12771277

12781278
~~~
12791279
# trait Shape { fn area(&self) -> float; }
@@ -1914,7 +1914,7 @@ A field access on a record is an [lvalue](#lvalues-rvalues-and-temporaries) refe
19141914
When the field is mutable, it can be [assigned](#assignment-expressions) to.
19151915

19161916
When the type of the expression to the left of the dot is a pointer to a record or structure,
1917-
it is automatically derferenced to make the field access possible.
1917+
it is automatically dereferenced to make the field access possible.
19181918

19191919

19201920
### Vector expressions

src/libextra/enum_set.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub struct EnumSet<E> {
1818
priv bits: uint
1919
}
2020

21-
/// An iterface for casting C-like enum to uint and back.
21+
/// An interface for casting C-like enum to uint and back.
2222
pub trait CLike {
2323
/// Converts C-like enum to uint.
2424
fn to_uint(&self) -> uint;

src/libextra/flatpipes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ Constructors for flat pipes that send POD types using memcpy.
166166
167167
This module is currently unsafe because it uses `Clone + Send` as a type
168168
parameter bounds meaning POD (plain old data), but `Clone + Send` and
169-
POD are not equivelant.
169+
POD are not equivalent.
170170
171171
*/
172172
pub mod pod {

src/libextra/stats.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ pub fn write_boxplot(w: @io::Writer, s: &Summary, width_hint: uint) {
365365
w.write_str(histr);
366366
}
367367

368-
/// Returns a HashMap with the number of occurences of every element in the
368+
/// Returns a HashMap with the number of occurrences of every element in the
369369
/// sequence that the iterator exposes.
370370
pub fn freq_count<T: Iterator<U>, U: Eq+Hash>(mut iter: T) -> hashmap::HashMap<U, uint> {
371371
let mut map = hashmap::HashMap::new::<U, uint>();

src/libstd/at_vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ pub mod raw {
200200
* Sets the length of a vector
201201
*
202202
* This will explicitly set the size of the vector, without actually
203-
* modifing its buffers, so it is up to the caller to ensure that
203+
* modifying its buffers, so it is up to the caller to ensure that
204204
* the vector is actually the specified size.
205205
*/
206206
#[inline]

src/libstd/bool.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ and more.
3333
3434
Also, a few conversion functions: `to_bit` and `to_str`.
3535
36-
Finally, some inquries into the nature of truth: `is_true` and `is_false`.
36+
Finally, some inquiries into the nature of truth: `is_true` and `is_false`.
3737
3838
*/
3939

src/libstd/fmt/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ helper methods.
147147
## Internationalization
148148
149149
The formatting syntax supported by the `ifmt!` extension supports
150-
internationalization by providing "methods" which execute various differnet
150+
internationalization by providing "methods" which execute various different
151151
outputs depending on the input. The syntax and methods provided are similar to
152152
other internationalization systems, so again nothing should seem alien.
153153
Currently two methods are supported by this extension: "select" and "plural".

src/libstd/fmt/parse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ pub enum Position<'self> {
6666
ArgumentNext, ArgumentIs(uint), ArgumentNamed(&'self str)
6767
}
6868

69-
/// Enum of alignments which are supoprted.
69+
/// Enum of alignments which are supported.
7070
#[deriving(Eq)]
7171
pub enum Alignment { AlignLeft, AlignRight, AlignUnknown }
7272

src/libstd/num/f32.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ pub static neg_infinity: f32 = -1.0_f32/0.0_f32;
125125
pub mod consts {
126126
// FIXME (requires Issue #1433 to fix): replace with mathematical
127127
// staticants from cmath.
128-
/// Archimedes' staticant
128+
/// Archimedes' constant
129129
pub static pi: f32 = 3.14159265358979323846264338327950288_f32;
130130

131131
/// pi/2.0

src/libstd/ptr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ pub unsafe fn array_each_with_len<T>(arr: **T, len: uint, cb: &fn(*T)) {
254254
passing to the provided callback function
255255
256256
SAFETY NOTE: This will only work with a null-terminated
257-
pointer array. Barely less-dodgey Pointer Arithmetic.
257+
pointer array. Barely less-dodgy Pointer Arithmetic.
258258
Dragons be here.
259259
*/
260260
pub unsafe fn array_each<T>(arr: **T, cb: &fn(*T)) {

0 commit comments

Comments
 (0)