Skip to content

Commit

Permalink
Cleanup proc comment in guide-tasks.md.
Browse files Browse the repository at this point in the history
  • Loading branch information
pnkfelix committed May 5, 2014
1 parent dcde1ee commit 0fb1f3f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/doc/guide-tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,10 @@ closure in the new task.
fn print_message() { println!("I am running in a different task!"); }
spawn(print_message);
// Print something more profound in a different task using a lambda expression
// This uses the proc() keyword to assign to spawn a function with no name
// That function will call println!(...) as requested
// Print something profound in a different task using a `proc` expression
// The `proc` expression evaluates to an (unnamed) owned closure.
// That closure will call `println!(...)` when the spawned task runs.
spawn(proc() println!("I am also running in a different task!") );
~~~~

Expand Down

5 comments on commit 0fb1f3f

@bors
Copy link
Contributor

@bors bors commented on 0fb1f3f May 6, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from alexcrichton
at pnkfelix@0fb1f3f

@bors
Copy link
Contributor

@bors bors commented on 0fb1f3f May 6, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging pnkfelix/rust/fsk-cleanup-proc-comment-in-guide-tasks = 0fb1f3f into auto

@bors
Copy link
Contributor

@bors bors commented on 0fb1f3f May 6, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pnkfelix/rust/fsk-cleanup-proc-comment-in-guide-tasks = 0fb1f3f merged ok, testing candidate = a1ca572

@bors
Copy link
Contributor

@bors bors commented on 0fb1f3f May 6, 2014

@bors
Copy link
Contributor

@bors bors commented on 0fb1f3f May 6, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = a1ca572

Please sign in to comment.