Skip to content

Commit b3ed38f

Browse files
committed
auto merge of #12345 : huonw/rust/speeling, r=cmr
2 parents 1e60084 + 6555b04 commit b3ed38f

File tree

10 files changed

+14
-15
lines changed

10 files changed

+14
-15
lines changed

src/libextra/json.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ fn main() {
125125
}
126126
```
127127
128-
To decode a json string using `Decodable` trait :
128+
To decode a JSON string using `Decodable` trait :
129129
130130
```rust
131131
extern crate serialize;
@@ -172,7 +172,7 @@ fn main() {
172172
{data_int: 1, data_str:~"toto", data_vector:~[2,3,4,5]};
173173
let encoded_str: ~str = json::Encoder::str_encode(&to_encode_object);
174174
175-
// To unserialize use the `extra::json::from_str` and `extra::json::Decoder`
175+
// To deserialize use the `extra::json::from_str` and `extra::json::Decoder`
176176
177177
let json_object = extra::json::from_str(encoded_str);
178178
let mut decoder = json::Decoder::new(json_object.unwrap());
@@ -182,7 +182,7 @@ fn main() {
182182
183183
## Using `ToJson`
184184
185-
This example use the ToJson impl to unserialize the json string.
185+
This example use the ToJson impl to deserialize the JSON string.
186186
Example of `ToJson` trait implementation for TestStruct1.
187187
188188
```rust
@@ -212,13 +212,13 @@ impl ToJson for TestStruct1 {
212212
}
213213
214214
fn main() {
215-
// Seralization using our impl of to_json
215+
// Serialization using our impl of to_json
216216
217217
let test2: TestStruct1 = TestStruct1 {data_int: 1, data_str:~"toto", data_vector:~[2,3,4,5]};
218218
let tjson: json::Json = test2.to_json();
219219
let json_str: ~str = tjson.to_str();
220220
221-
// Unserialize like before.
221+
// Deserialize like before.
222222
223223
let mut decoder = json::Decoder::new(json::from_str(json_str).unwrap());
224224
// create the final object

src/libextra/test.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1110,7 +1110,7 @@ impl MetricMap {
11101110
11111111
// Benchmarking
11121112
1113-
/// A function that is opaque to the optimiser, to allow benchmarks to
1113+
/// A function that is opaque to the optimizer, to allow benchmarks to
11141114
/// pretend to use outputs to assist in avoiding dead-code
11151115
/// elimination.
11161116
///

src/libgreen/sched.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ pub struct Scheduler {
8686
/// A flag to tell the scheduler loop it needs to do some stealing
8787
/// in order to introduce randomness as part of a yield
8888
steal_for_yield: bool,
89-
/// Bookeeping for the number of tasks which are currently running around
89+
/// Bookkeeping for the number of tasks which are currently running around
9090
/// inside this pool of schedulers
9191
task_state: TaskState,
9292

src/libstd/comm/select.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ impl Select {
144144
}
145145
}
146146

147-
/// Waits for an event on this port set. The returned valus is *not* and
147+
/// Waits for an event on this port set. The returned value is *not* an
148148
/// index, but rather an id. This id can be queried against any active
149149
/// `Handle` structures (each one has an `id` method). The handle with
150150
/// the matching `id` will have some sort of event available on it. The

src/libstd/io/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1287,7 +1287,7 @@ pub trait Acceptor<T> {
12871287
///
12881288
/// Since connection attempts can continue forever, this iterator always returns
12891289
/// `Some`. The `Some` contains the `IoResult` representing whether the
1290-
/// connection attempt was succesful. A successful connection will be wrapped
1290+
/// connection attempt was successful. A successful connection will be wrapped
12911291
/// in `Ok`. A failed connection is represented as an `Err`.
12921292
pub struct IncomingConnections<'a, A> {
12931293
priv inc: &'a mut A,

src/libstd/iter.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ pub trait OrdIterator<A> {
883883
/// ```
884884
fn min(&mut self) -> Option<A>;
885885

886-
/// `min_max` finds the mininum and maximum elements in the iterator.
886+
/// `min_max` finds the minimum and maximum elements in the iterator.
887887
///
888888
/// The return type `MinMaxResult` is an enum of three variants:
889889
/// - `NoElements` if the iterator is empty.

src/libstd/rt/task.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ impl Task {
254254
ops.deschedule(amt, self, f)
255255
}
256256

257-
/// Wakes up a previously blocked task, optionally specifiying whether the
257+
/// Wakes up a previously blocked task, optionally specifying whether the
258258
/// current task can accept a change in scheduling. This function can only
259259
/// be called on tasks that were previously blocked in `deschedule`.
260260
pub fn reawaken(mut ~self) {

src/libstd/rt/unwind.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ pub fn begin_unwind_raw(msg: *u8, file: *u8, line: uint) -> ! {
400400
/// The entry point for unwinding with a formatted message.
401401
///
402402
/// This is designed to reduce the amount of code required at the call
403-
/// site as much as possible (so that `fail!()` has as low an implact
403+
/// site as much as possible (so that `fail!()` has as low an impact
404404
/// on (e.g.) the inlining of other functions as possible), by moving
405405
/// the actual formatting into this shared place.
406406
#[inline(never)] #[cold]

src/libstd/sync/mpsc_queue.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ impl<T: Send> Queue<T> {
104104
///
105105
/// Note that the current implementation means that this function cannot
106106
/// return `Option<T>`. It is possible for this queue to be in an
107-
/// inconsistent state where many pushes have suceeded and completely
107+
/// inconsistent state where many pushes have succeeded and completely
108108
/// finished, but pops cannot return `Some(t)`. This inconsistent state
109109
/// happens when a pusher is pre-empted at an inopportune moment.
110110
///
@@ -203,4 +203,3 @@ mod tests {
203203
}
204204
}
205205
}
206-

src/libsync/sync/mutex.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ impl Mutex {
460460

461461
/// Acquires a mutex, blocking the current task until it is able to do so.
462462
///
463-
/// This function will block the local task until it is availble to acquire
463+
/// This function will block the local task until it is available to acquire
464464
/// the mutex. Upon returning, the task is the only task with the mutex
465465
/// held. An RAII guard is returned to allow scoped unlock of the lock. When
466466
/// the guard goes out of scope, the mutex will be unlocked.

0 commit comments

Comments
 (0)