Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 1.02 KB

README.md

File metadata and controls

38 lines (30 loc) · 1.02 KB

Workshop Pages: https://knox-networks.github.io/rust-workshop/

Resources

Debugging Quickref:

  • dbg!() macro for more accurate println!
let a = 2;
let b = dbg!(a * 2) + 1;
//      ^-- prints: [src/main.rs:2] a * 2 = 4
assert_eq!(b, 5);
$ cargo test -- --nocapture
#[test]
fn test() {
    println!("If `cargo test --` gets the `--nocapture` flag, \
              then I will print to stdout");
}