Skip to content

Commit c2c9946

Browse files
committed
Fix more misspelled comments and strings.
1 parent 0ee6a8e commit c2c9946

File tree

48 files changed

+64
-64
lines changed

Some content is hidden

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

48 files changed

+64
-64
lines changed

src/liballoc/arc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ impl<T: Share + Send> Drop for Arc<T> {
184184

185185
// This fence is needed to prevent reordering of use of the data and
186186
// deletion of the data. Because it is marked `Release`, the
187-
// decreasing of the reference count sychronizes with this `Acquire`
187+
// decreasing of the reference count synchronizes with this `Acquire`
188188
// fence. This means that use of the data happens before decreasing
189189
// the refernce count, which happens before this fence, which
190190
// happens before the deletion of the data.

src/libcore/fmt/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ impl<'a> Formatter<'a> {
539539
}
540540

541541
/// Runs a callback, emitting the correct padding either before or
542-
/// afterwards depending on whether right or left alingment is requested.
542+
/// afterwards depending on whether right or left alignment is requested.
543543
fn with_padding(&mut self,
544544
padding: uint,
545545
default: rt::Alignment,

src/libcore/result.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
//! *Note: The actual definition of `Writer` uses `IoResult`, which
106106
//! is just a synonym for `Result<T, IoError>`.*
107107
//!
108-
//! This method doesn`t produce a value, but the write may
108+
//! This method doesn't produce a value, but the write may
109109
//! fail. It's crucial to handle the error case, and *not* write
110110
//! something like this:
111111
//!

src/libgetopts/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ pub struct OptGroup {
163163
pub occur: Occur
164164
}
165165

166-
/// Describes wether an option is given at all or has a value.
166+
/// Describes whether an option is given at all or has a value.
167167
#[deriving(Clone, PartialEq)]
168168
enum Optval {
169169
Val(String),

src/libgreen/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ fn initialize_call_frame(regs: &mut Registers, fptr: InitFn, arg: uint,
226226
regs[RUSTRT_R14] = procedure.env as uint;
227227
regs[RUSTRT_R15] = fptr as uint;
228228

229-
// These registers are picked up by the regulard context switch paths. These
229+
// These registers are picked up by the regular context switch paths. These
230230
// will put us in "mostly the right context" except for frobbing all the
231231
// arguments to the right place. We have the small trampoline code inside of
232232
// rust_bootstrap_green_task to do that.

src/libgreen/sched.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ pub struct Scheduler {
8282
run_anything: bool,
8383
/// A fast XorShift rng for scheduler use
8484
rng: XorShiftRng,
85-
/// A togglable idle callback
85+
/// A toggleable idle callback
8686
idle_callback: Option<Box<PausableIdleCallback:Send>>,
8787
/// A countdown that starts at a random value and is decremented
8888
/// every time a yield check is performed. When it hits 0 a task
@@ -287,7 +287,7 @@ impl Scheduler {
287287

288288
// After processing a message, we consider doing some more work on the
289289
// event loop. The "keep going" condition changes after the first
290-
// iteration becase we don't want to spin here infinitely.
290+
// iteration because we don't want to spin here infinitely.
291291
//
292292
// Once we start doing work we can keep doing work so long as the
293293
// iteration does something. Note that we don't want to starve the

src/liblibc/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ pub use types::os::arch::extra::{mach_timebase_info};
291291
extern {}
292292

293293
/// A wrapper for a nullable pointer. Don't use this except for interacting
294-
/// with libc. Basically Option, but without the dependance on libstd.
294+
/// with libc. Basically Option, but without the dependence on libstd.
295295
// If/when libprim happens, this can be removed in favor of that
296296
pub enum Nullable<T> {
297297
Null,
@@ -3497,7 +3497,7 @@ pub mod consts {
34973497

34983498

34993499
pub mod funcs {
3500-
// Thankfull most of c95 is universally available and does not vary by OS
3500+
// Thankfully most of c95 is universally available and does not vary by OS
35013501
// or anything. The same is not true of POSIX.
35023502

35033503
pub mod c95 {

src/libnative/io/pipe_win32.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
//! it sounded like named pipes just weren't built for this kind of interaction,
5151
//! and the suggested solution was to use overlapped I/O.
5252
//!
53-
//! I don't realy know what overlapped I/O is, but my basic understanding after
53+
//! I don't really know what overlapped I/O is, but my basic understanding after
5454
//! reading about it is that you have an external Event which is used to signal
5555
//! I/O completion, passed around in some OVERLAPPED structures. As to what this
5656
//! is, I'm not exactly sure.

src/libnative/io/process.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@ fn waitpid(pid: pid_t, deadline: u64) -> IoResult<rtio::ProcessExit> {
923923
// Register a new SIGCHLD handler, returning the reading half of the
924924
// self-pipe plus the old handler registered (return value of sigaction).
925925
//
926-
// Be sure to set up the self-pipe first because as soon as we reigster a
926+
// Be sure to set up the self-pipe first because as soon as we register a
927927
// handler we're going to start receiving signals.
928928
fn register_sigchld() -> (libc::c_int, c::sigaction) {
929929
unsafe {

src/libnative/task.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ impl rt::Runtime for Ops {
166166
//
167167
// On a mildly unrelated note, it should also be pointed out that OS
168168
// condition variables are susceptible to spurious wakeups, which we need to
169-
// be ready for. In order to accomodate for this fact, we have an extra
169+
// be ready for. In order to accommodate for this fact, we have an extra
170170
// `awoken` field which indicates whether we were actually woken up via some
171171
// invocation of `reawaken`. This flag is only ever accessed inside the
172172
// lock, so there's no need to make it atomic.

0 commit comments

Comments
 (0)