Skip to content

Commit 589a62c

Browse files
authored
Auto merge of #279 - ferivoz:typos, r=jdm
Fix typos Typos found with codespell
2 parents a7e5534 + 8bd058d commit 589a62c

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

src/ipc.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ impl StdError for TryRecvError {
9090
}
9191

9292
/// Create a connected [IpcSender] and [IpcReceiver] that
93-
/// transfer messages of a given type privided by type `T`
93+
/// transfer messages of a given type provided by type `T`
9494
/// or inferred by the types of messages sent by the sender.
9595
///
9696
/// Messages sent by the sender will be available to the
@@ -204,7 +204,7 @@ pub fn bytes_channel() -> Result<(IpcBytesSender, IpcBytesReceiver), io::Error>
204204
/// loop {
205205
/// match rx.try_recv() {
206206
/// Ok(res) => {
207-
/// // Do something interesting wth your result
207+
/// // Do something interesting with your result
208208
/// println!("Received data...");
209209
/// break;
210210
/// },
@@ -353,7 +353,7 @@ impl<T> IpcSender<T> where T: Serialize {
353353
})
354354
}
355355

356-
/// Send data accross the channel to the receiver.
356+
/// Send data across the channel to the receiver.
357357
pub fn send(&self, data: T) -> Result<(), bincode::Error> {
358358
let mut bytes = Vec::with_capacity(4096);
359359
OS_IPC_CHANNELS_FOR_SERIALIZATION.with(|os_ipc_channels_for_serialization| {

src/platform/inprocess/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ impl OsIpcReceiverSet {
205205

206206
struct Remove(usize, u64);
207207

208-
// FIXME: Remove early returns and explictly drop `borrows` when lifetimes are non-lexical
208+
// FIXME: Remove early returns and explicitly drop `borrows` when lifetimes are non-lexical
209209
let Remove(r_index, r_id) = {
210210
let borrows: Vec<_> = self.receivers.iter().map(|r| {
211211
Ref::map(r.receiver.borrow(), |o| o.as_ref().unwrap())

src/platform/test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ fn try_recv_large_delayed() {
978978
time_per_run = start.elapsed();
979979
}
980980
// This assumes time_per_run stays below one second.
981-
// Unless something weird happens, we shoud be safely within this margin...
981+
// Unless something weird happens, we should be safe within this margin...
982982
iterations_per_ms = iterations * 1_000_000 / time_per_run.subsec_nanos() as u64;
983983
}
984984

@@ -1116,7 +1116,7 @@ fn cross_process_two_step_transfer_spawn() {
11161116
let sub_tx = received_channels[0].to_sender();
11171117

11181118
// Send the outer payload channel, so the server can use it to
1119-
// retrive the inner payload and the cookie
1119+
// retrieve the inner payload and the cookie
11201120
sub_tx.send(&[], vec![OsIpcChannel::Receiver(two_rx)], vec![]).unwrap();
11211121

11221122
// Then we wait for the cookie to make its way back to us

src/platform/windows/aliased_cell.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ impl Drop for DropBomb {
6060
/// Leaking the memory, while undesirable in general,
6161
/// keeps the memory accessible to any outstanding aliases.
6262
/// This is the only way to retain soundness during unwinding,
63-
/// or when the panic gets catched.
63+
/// or when the panic gets caught.
6464
///
6565
/// Note that making FFI access through untracked aliases
6666
/// requires the value to have a stable memory location --

src/platform/windows/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ impl<'data> Message<'data> {
184184
/// make sure that the message was originally sent to it, and was not sitting
185185
/// in another channel's buffer when that channel got transferred to another
186186
/// process. On Windows, we duplicate handles on the sender side to a specific
187-
/// reciever. If the wrong receiver gets it, those handles are not valid.
187+
/// receiver. If the wrong receiver gets it, those handles are not valid.
188188
///
189189
/// TODO(vlad): We could attempt to recover from the above situation by
190190
/// duplicating from the intended target process to ourselves (the receiver).

src/router.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ impl Router {
158158
}
159159
}
160160

161-
/// Continously loop waiting for wakeup signals from router proxy.
161+
/// Continuously loop waiting for wakeup signals from router proxy.
162162
/// Iterate over events either:
163163
/// 1) If a message comes in from our special `wakeup_receiver` (identified through
164164
/// msg_wakeup_id. Read message from `msg_receiver` and add a new receiver

0 commit comments

Comments
 (0)