auto merge of #5916 : danluu/rust/debug_tutorial, r=catamorphism

debug! is used in the tutorial without any explanation of how to get the output. This adds a blurb on how to see the output from debug!
This commit is contained in:
bors 2013-04-17 22:51:56 -07:00
commit acf8887047

View File

@ -1669,6 +1669,9 @@ do spawn {
}
~~~~
If you want to see the output of `debug!` statements, you will need to turn on `debug!` logging.
To enable `debug!` logging, set the RUST_LOG environment variable to `debug` (e.g., with bash, `export RUST_LOG=debug`)
## For loops
The most common way to express iteration in Rust is with a `for`