about summary refs log tree commit diff
path: root/src/rt/rust_task.cpp
diff options
context:
space:
mode:
authorRamkumar Ramachandra <artagnon@gmail.com>2013-06-06 19:23:38 +0530
committerRamkumar Ramachandra <artagnon@gmail.com>2013-06-06 19:43:16 +0530
commitdd923e3831f93c7ad8f3b872069fdeff31e522c7 (patch)
tree12fbc3d09f9697f8dc4787ded7d3806d580e24b3 /src/rt/rust_task.cpp
parentc2cb23807507b5c9e46f9a41fb3084993476deb7 (diff)
downloadrust-dd923e3831f93c7ad8f3b872069fdeff31e522c7.tar.gz
rust-dd923e3831f93c7ad8f3b872069fdeff31e522c7.zip
tutorial: fix for-loop example
Although in the example function `each` works as expected with
rust-0.6 (the latest release), it fails to even compile with `incoming`
rust (see test/compile-fail/bad-for-loop-2.rs). Change the function to
return a `bool` instead of `()`: this works fine with both versions of
rust, and does not misguide potential contributors.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Diffstat (limited to 'src/rt/rust_task.cpp')
0 files changed, 0 insertions, 0 deletions