From ef67e1649a1a67b33c5598791abb8c3c51e8b428 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Sun, 19 Aug 2012 16:06:42 -0700 Subject: [PATCH 1/2] Add comma after 'For example'. --- doc/tutorial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/tutorial.md b/doc/tutorial.md index df1573fc494b1..1c93d51ec4c23 100644 --- a/doc/tutorial.md +++ b/doc/tutorial.md @@ -1560,7 +1560,7 @@ if favorite_crayon_name.len() > 5 { Named functions, like those we've seen so far, may not refer to local variables declared outside the function - they do not "close over -their environment". For example you couldn't write the following: +their environment". For example, you couldn't write the following: ~~~~ {.ignore} let foo = 10; From 1f81eea80bc583a6940da27bac49e889cc7e34b0 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Tue, 4 Sep 2012 00:40:18 -0700 Subject: [PATCH 2/2] In DuplexStream explanation: change 'There' to 'The'. --- doc/tutorial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/tutorial.md b/doc/tutorial.md index 1c93d51ec4c23..4185a2f6b9d32 100644 --- a/doc/tutorial.md +++ b/doc/tutorial.md @@ -2953,7 +2953,7 @@ let result = port.recv(); ## Creating a task with a bi-directional communication path A very common thing to do is to spawn a child task where the parent -and child both need to exchange messages with each other. There +and child both need to exchange messages with each other. The function `std::comm::DuplexStream()` supports this pattern. We'll look briefly at how it is used.