about summary refs log tree commit diff
diff options
context:
space:
mode:
authormdinger <mdinger.bugzilla@gmail.com>2014-04-18 21:43:29 -0400
committermdinger <mdinger.bugzilla@gmail.com>2014-04-18 21:43:29 -0400
commitad0cdd7081bf78c4b7a00344f6f2b2f113cf0957 (patch)
tree3523daecdc3337e111541593a36764c98b653c71
parentb75683cadf6c4c55360202cd6a0106be80532451 (diff)
downloadrust-ad0cdd7081bf78c4b7a00344f6f2b2f113cf0957.tar.gz
rust-ad0cdd7081bf78c4b7a00344f6f2b2f113cf0957.zip
Be more clear about what this lambda expression does
-rw-r--r--src/doc/guide-tasks.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/doc/guide-tasks.md b/src/doc/guide-tasks.md
index 5dd58ccb61d..1f6d6854f71 100644
--- a/src/doc/guide-tasks.md
+++ b/src/doc/guide-tasks.md
@@ -101,6 +101,8 @@ 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
 spawn(proc() println!("I am also running in a different task!") );
 ~~~~