diff options
| author | Joseph Crail <jbcrail@gmail.com> | 2014-06-09 00:00:52 -0400 |
|---|---|---|
| committer | Joseph Crail <jbcrail@gmail.com> | 2014-06-10 11:24:17 -0400 |
| commit | c2c99463720e758d5aa0bdcea19dc5b3dd67292c (patch) | |
| tree | b6744e6d280594324f1f22fe8b76ccd03f7eedb0 /src/libgreen | |
| parent | 0ee6a8e8a564ec0134ebdc0869fab5e4bb28024c (diff) | |
| download | rust-c2c99463720e758d5aa0bdcea19dc5b3dd67292c.tar.gz rust-c2c99463720e758d5aa0bdcea19dc5b3dd67292c.zip | |
Fix more misspelled comments and strings.
Diffstat (limited to 'src/libgreen')
| -rw-r--r-- | src/libgreen/context.rs | 2 | ||||
| -rw-r--r-- | src/libgreen/sched.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libgreen/context.rs b/src/libgreen/context.rs index 5b1a4a8b80e..9c7ad184543 100644 --- a/src/libgreen/context.rs +++ b/src/libgreen/context.rs @@ -226,7 +226,7 @@ fn initialize_call_frame(regs: &mut Registers, fptr: InitFn, arg: uint, regs[RUSTRT_R14] = procedure.env as uint; regs[RUSTRT_R15] = fptr as uint; - // These registers are picked up by the regulard context switch paths. These + // These registers are picked up by the regular context switch paths. These // will put us in "mostly the right context" except for frobbing all the // arguments to the right place. We have the small trampoline code inside of // rust_bootstrap_green_task to do that. diff --git a/src/libgreen/sched.rs b/src/libgreen/sched.rs index f55dc92eac6..1e8f774ea16 100644 --- a/src/libgreen/sched.rs +++ b/src/libgreen/sched.rs @@ -82,7 +82,7 @@ pub struct Scheduler { run_anything: bool, /// A fast XorShift rng for scheduler use rng: XorShiftRng, - /// A togglable idle callback + /// A toggleable idle callback idle_callback: Option<Box<PausableIdleCallback:Send>>, /// A countdown that starts at a random value and is decremented /// every time a yield check is performed. When it hits 0 a task @@ -287,7 +287,7 @@ impl Scheduler { // After processing a message, we consider doing some more work on the // event loop. The "keep going" condition changes after the first - // iteration becase we don't want to spin here infinitely. + // iteration because we don't want to spin here infinitely. // // Once we start doing work we can keep doing work so long as the // iteration does something. Note that we don't want to starve the |
