Skip to content
This repository has been archived by the owner on Oct 9, 2018. It is now read-only.

Commit

Permalink
change the equality check to an assignment (typo)
Browse files Browse the repository at this point in the history
  • Loading branch information
smvv committed Jul 30, 2013
1 parent 3bd3a5d commit d0a886d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc-under-construction-FAQ.md
Expand Up @@ -34,7 +34,7 @@ fn foo(message: ~str, chan_opt: Option<Chan<~str>>) {
...or, if no such alternate exists, use the ```std::cell::Cell``` type:
```
fn foo(message: ~str, chan_opt: Option<Chan<~str>>) {
let message_cell == Cell::new(message);
let message_cell = Cell::new(message);
do chan_opt.map |chan| {
// NOTE: If the closure is called twice, the 2nd take() will fail!
chan.send(message_cell.take());
Expand Down

0 comments on commit d0a886d

Please sign in to comment.