@@ -47,7 +47,7 @@ In particular, there are currently two independent modules that provide
47
47
a message passing interface to Rust code: ` core::comm ` and ` core::pipes ` .
48
48
` core::comm ` is an older, less efficient system that is being phased out
49
49
in favor of ` pipes ` . At some point the existing ` core::comm ` API will
50
- be romoved and the user-facing portions of ` core::pipes ` will be moved
50
+ be removed and the user-facing portions of ` core::pipes ` will be moved
51
51
to ` core::comm ` . In this tutorial we will discuss ` pipes ` and ignore
52
52
the ` comm ` API.
53
53
@@ -58,7 +58,7 @@ concurrency at the moment.
58
58
* [ ` core::comm ` ] - The deprecated message passing API
59
59
* [ ` core::pipes ` ] - The new message passing infrastructure and API
60
60
* [ ` std::comm ` ] - Higher level messaging types based on ` core::pipes `
61
- * [ ` std::sync ` ] - More exotic synchronization tools, including locks
61
+ * [ ` std::sync ` ] - More exotic synchronization tools, including locks
62
62
* [ ` std::arc ` ] - The ARC type, for safely sharing immutable data
63
63
* [ ` std::par ` ] - Some basic tools for implementing parallel algorithms
64
64
@@ -151,7 +151,7 @@ commonly used, which we will cover presently.
151
151
152
152
The simplest way to create a pipe is to use the ` pipes::stream `
153
153
function to create a ` (Chan, Port) ` pair. In Rust parlance a 'channel'
154
- is a sending endpoint of a pipe, and a 'port' is the recieving
154
+ is a sending endpoint of a pipe, and a 'port' is the receiving
155
155
endpoint. Consider the following example of performing two calculations
156
156
concurrently.
157
157
@@ -183,7 +183,7 @@ let (chan, port): (Chan<int>, Port<int>) = stream();
183
183
~~~~
184
184
185
185
The channel will be used by the child task to send data to the parent task,
186
- which will wait to recieve the data on the port. The next statement
186
+ which will wait to receive the data on the port. The next statement
187
187
spawns the child task.
188
188
189
189
~~~~
@@ -307,7 +307,7 @@ unrecoverable within a single task - once a task fails there is no way
307
307
to "catch" the exception.
308
308
309
309
All tasks are, by default, _ linked_ to each other, meaning their fate
310
- is interwined , and if one fails so do all of them.
310
+ is intertwined , and if one fails so do all of them.
311
311
312
312
~~~
313
313
# use task::spawn;
0 commit comments