Fix fmt::Display vs fmt::Debug URL

This commit is contained in:
r3c0d3x 2017-02-11 12:26:08 -05:00 committed by GitHub
parent 1ab3c34dd9
commit a08fe955eb

View file

@ -177,7 +177,7 @@ Use `RUST_BACKTRACE=1` to dump the backtrace when Servo panics.
### println!()
You will want to add your own logs. Luckily, many structures [implement the `fmt::Debug` trait](https://doc.rust-lang.org/std/fmt/#fmt::display-vs-fmt::debug), so adding:
You will want to add your own logs. Luckily, many structures [implement the `fmt::Debug` trait](https://doc.rust-lang.org/std/fmt/#fmtdisplay-vs-fmtdebug), so adding:
``` rust
println!("foobar: {:?}", foobar)