Skip to content

Commit a727f44

Browse files
committed
spelling
1 parent 0d8c5ac commit a727f44

File tree

2 files changed

+20
-11
lines changed

2 files changed

+20
-11
lines changed

.vscode/settings.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"spellright.language": [
3+
"en"
4+
],
5+
"spellright.documentTypes": [
6+
"markdown",
7+
"latex",
8+
"plaintext"
9+
]
10+
}

README.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,32 @@ Written by Carl Fredrik Samson, published by Packt
66

77
## How to use this repository
88

9-
My clear recommendation is to clone this repository by either click on the `<> Code` button and select "Download ZIP" or clone the repository using your preferred git client.
9+
My clear recommendation is to clone this repository by either clicking on the `<> Code` button and select "Download ZIP" or clone the repository using your preferred git client.
1010

1111
Each chapter has its own folder in this repository. Each example is organized as a standalone crate within that folder.
1212

13-
When encountering examples in the book, you might find it easier to read in the repository since you'll be able to open it up in the editor of your choice with approperiate highlighting and formatting.
13+
When encountering examples in the book, you might find it easier to read the code in the repository since you'll be able to open it up in the editor of your choice and have appropriate highlighting and formatting.
1414

1515
Even if you prefer to write the examples from the book line by line, you'll need the repository for `delayserver` and `corofy` which is two tools I wrote to help in the learning process.
1616

17+
## I'll be going on a plane, how can I use the repository in an offline situation?
18+
19+
You'll need to install both `delayserver` and `corofy` locally on your machine while you're online. The process is described below.
20+
21+
Most of the examples have no external dependencies, but from chapter 6 onwards
22+
we will have some of them. The best way to be able to run these examples while offline is to enter each folder and use [cargo vendor](https://doc.rust-lang.org/cargo/commands/cargo-vendor.html) to vendor the dependencies locally. This way you'll be able to build and experiment with the examples even though you'll be offline.
23+
1724
## Delayserver
1825

1926
Most of the examples will use a program called delayserver that's provided in this repository. Delayserver is a simple local webserver where you can write a HTTP GET request with a configurable delay.
2027

2128
You have two options for running the delayserver:
2229

23-
1. Go to the folder called delayserver and write `cargo run` in a separate terminal window and leave it running there
30+
1. Go to the folder named `/delayserver` and write `cargo run` in a separate terminal window and leave it running there
2431
2. Go to the delayserver and install the server by writing `cargo install --force --path .`. By doing so you install the program locally in you PATH so you can run it from any location by simply writing `delayserver` and leave the terminal process running.
2532

2633
## Corofy
2734

2835
Corofy is another tool that we'll use from chapter 7 onwards. I recommend installing this tool by entering the folder `ch7/corofy` and installing it on your machine by writing `cargo install --force --path .`
2936

30-
## I'll be going on a plane, how can I use the repository in an offline situation?
31-
32-
You'll need to install both delayserver and corofy locally on your machine wile you're online.
33-
34-
Most of the examples has no external dependencies, but from chapter 6 onwards
35-
we will have one or more external dependencies. The best way to be able to run these examples while offline is to enter each folder and use [cargo vendor](https://doc.rust-lang.org/cargo/commands/cargo-vendor.html) to vendor the dependencies locally. This way you'll be able to build and experiment with the examples even though you'll be offline.
36-
37-
3837
Asynchronous Programming in Rust, published by Packt

0 commit comments

Comments
 (0)