Skip to content

Commit 85fb858

Browse files
committed
fix some typos
1 parent 56034ee commit 85fb858

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

ch01/a-assembly-dereference/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//! ## FIX ISSUE #11:
55
//! See:https://github.com/PacktPublishing/Asynchronous-Programming-in-Rust/issues/11
66
//! The book didn't make it clear that this example will only work on `x86-64` architecture,
7-
//! so users on newer M-series macs (which uses the ARM64 instruciton set), will get a
7+
//! so users on newer M-series macs (which uses the ARM64 instruction set), will get a
88
//! compilation error. This is solved by conditionally compiling a version that works
99
//! with the ARM64 instruction set.
1010

ch03/a-raw-syscall/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ fn syscall(message: String) {
5050
}
5151

5252
// ----------------------------------------------------------------------------
53-
// macOS raw syscall when running newer M familiy CPU (ARM 64 architecture)
53+
// macOS raw syscall when running newer M family CPU (ARM 64 architecture)
5454
// ----------------------------------------------------------------------------
5555

5656
#[cfg(all(target_os = "macos", target_arch = "aarch64"))]

ch04/a-epoll/src/poll.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ impl Poll {
4545
return Err(io::Error::last_os_error());
4646
};
4747

48-
// This is safe because epol_wait ensures that `res` events are assigned.
48+
// This is safe because epoll_wait ensures that `res` events are assigned.
4949
unsafe { events.set_len(res as usize) };
5050
Ok(())
5151
}

ch05/d-fibers-closure/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ unsafe fn switch() {
197197
);
198198
}
199199

200-
// The main function has aslo changed
200+
// The main function has also changed
201201
#[cfg(not(windows))]
202202
pub fn main() {
203203
let mut runtime = Runtime::new();

ch07/corofy/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ impl Future for Coroutine{id} {{
295295
// We need to special case the first call since that
296296
// happens before we reach an `await` point
297297

298-
// This will recieve the input args to the function
298+
// This will receive the input args to the function
299299
let impl_fut_first_args = format_args_names_only(&args);
300300

301301
if i == 0 {
@@ -332,7 +332,7 @@ impl Future for Coroutine{id} {{
332332
"
333333
)?;
334334

335-
// These steps are await-ponts where we await a future
335+
// These steps are await-points where we await a future
336336
} else if i < steps.len() - 1 {
337337
let varname = &futures[i - 1].0;
338338
let fut = &futures[i].1;

delayserver/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ use actix_web::{Responder, get, HttpServer, App, web, rt::time::sleep};
44
const EXPLANATION: &str =
55
"USAGE:
66
Delay server works by issuing a http GET request in the format:
7-
http://localhost:8080/[delay in ms]/[UrlEncoded meesage]
7+
http://localhost:8080/[delay in ms]/[UrlEncoded message]
88
9-
On reception, it immidiately reports the following to the console:
9+
On reception, it immediately reports the following to the console:
1010
{Message #} - {delay in ms}: {message}
1111
1212
The server then delays the response for the requested time and echoes the message back to the caller.

0 commit comments

Comments
 (0)