Skip to content

Resolving issue 2852 #2853

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions doc/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -1592,7 +1592,7 @@ When you need to store a closure in a data structure, a stack closure
will not do, since the compiler will refuse to let you store it. For
this purpose, Rust provides a type of closure that has an arbitrary
lifetime, written `fn@` (boxed closure, analogous to the `@` pointer
type described in the next section).
type described in section 8).

A boxed closure does not directly access its environment, but merely
copies out the values that it closes over into a private data
Expand Down Expand Up @@ -2950,8 +2950,8 @@ fn stringifier(from_parent: comm::port<uint>,
You can see that the function takes two parameters. The first is a
port used to receive messages from the parent, and the second is a
channel used to send messages to the parent. The body itself simply
loops, reading from the `from_par` port and then sending its response
to the `to_par` channel. The actual response itself is simply the
loops, reading from the `from_parent` port and then sending its response
to the `to_parent` channel. The actual response itself is simply the
strified version of the received value, `uint::to_str(value)`.

Here is the code for the parent task:
Expand Down