Skip to content

Commit e3fa23b

Browse files
jbcrailalexcrichton
authored andcommitted
Fix spelling errors.
1 parent 8297edd commit e3fa23b

File tree

29 files changed

+36
-36
lines changed

29 files changed

+36
-36
lines changed

src/liballoc/arc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ impl<T: Share + Send> Drop for Arc<T> {
185185
// deletion of the data. Because it is marked `Release`, the
186186
// decreasing of the reference count synchronizes with this `Acquire`
187187
// fence. This means that use of the data happens before decreasing
188-
// the refernce count, which happens before this fence, which
188+
// the reference count, which happens before this fence, which
189189
// happens before the deletion of the data.
190190
//
191191
// As explained in the [Boost documentation][1],

src/libgreen/stack.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ impl Drop for Stack {
124124
}
125125

126126
pub struct StackPool {
127-
// Ideally this would be some datastructure that preserved ordering on
127+
// Ideally this would be some data structure that preserved ordering on
128128
// Stack.min_size.
129129
stacks: Vec<Stack>,
130130
}

src/liblog/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ pub fn mod_enabled(level: u32, module: &str) -> bool {
288288
unsafe { INIT.doit(init); }
289289

290290
// It's possible for many threads are in this function, only one of them
291-
// will peform the global initialization, but all of them will need to check
291+
// will perform the global initialization, but all of them will need to check
292292
// again to whether they should really be here or not. Hence, despite this
293293
// check being expanded manually in the logging macro, this function checks
294294
// the log level again.

src/libnative/io/net.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ pub fn write<T>(fd: sock_t,
877877
}
878878

879879
// Also as with read(), we use MSG_DONTWAIT to guard ourselves
880-
// against unforseen circumstances.
880+
// against unforeseen circumstances.
881881
let _guard = lock();
882882
let ptr = buf.slice_from(written).as_ptr();
883883
let len = buf.len() - written;

src/libnative/io/pipe_win32.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ impl rtio::RtioPipe for UnixStream {
376376
if ret != 0 { return Ok(bytes_read as uint) }
377377

378378
// If our errno doesn't say that the I/O is pending, then we hit some
379-
// legitimate error and reeturn immediately.
379+
// legitimate error and return immediately.
380380
if os::errno() != libc::ERROR_IO_PENDING as uint {
381381
return Err(super::last_error())
382382
}

src/librlibc/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#![no_std]
3232
#![experimental]
3333

34-
// This library is definining the builtin functions, so it would be a shame for
34+
// This library defines the builtin functions, so it would be a shame for
3535
// LLVM to optimize these function calls to themselves!
3636
#![no_builtins]
3737

src/librustc/back/link.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ pub mod write {
119119
// get all hardware potential via VFP3 (hardware floating point)
120120
// and NEON (SIMD) instructions supported by LLVM.
121121
// Note that without those flags various linking errors might
122-
// arise as some of intrinsicts are converted into function calls
122+
// arise as some of intrinsics are converted into function calls
123123
// and nobody provides implementations those functions
124124
fn target_feature<'a>(sess: &'a Session) -> &'a str {
125125
match sess.targ_cfg.os {

src/librustc/lint/builtin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,7 @@ impl UnnecessaryParens {
985985
_ => {}
986986
}
987987

988-
/// Expressions that syntatically contain an "exterior" struct
988+
/// Expressions that syntactically contain an "exterior" struct
989989
/// literal i.e. not surrounded by any parens or other
990990
/// delimiters, e.g. `X { y: 1 }`, `X { y: 1 }.method()`, `foo
991991
/// == X { y: 1 }` and `X { y: 1 } == foo` all do, but `(X {

src/librustc/middle/mem_categorization.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ impl<'t,TYPER:Typer> MemCategorizationContext<'t,TYPER> {
383383
Some(adjustment) => {
384384
match *adjustment {
385385
ty::AutoObject(..) => {
386-
// Implicity cast a concrete object to trait object.
386+
// Implicitly cast a concrete object to trait object.
387387
// Result is an rvalue.
388388
let expr_ty = if_ok!(self.expr_ty_adjusted(expr));
389389
Ok(self.cat_rvalue_node(expr.id(), expr.span(), expr_ty))

src/librustc/middle/privacy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,7 @@ impl<'a> Visitor<()> for VisiblePrivateTypesVisitor<'a> {
12671267
// error messages without (too many) false positives
12681268
// (i.e. we could just return here to not check them at
12691269
// all, or some worse estimation of whether an impl is
1270-
// publically visible.
1270+
// publicly visible.
12711271
ast::ItemImpl(ref g, ref trait_ref, self_, ref methods) => {
12721272
// `impl [... for] Private` is never visible.
12731273
let self_contains_private;

0 commit comments

Comments
 (0)