rustlings/exercises/clippy/clippy1.rs
2020-05-16 00:13:23 -07:00

15 lines
325 B
Rust

// clippy1.rs
// The Clippy tool is a collection of lints to analyze your code
// so you can catch common mistakes and improve your Rust code.
//
// Execute `rustlings hint clippy1` for hints :)
fn main() {
let x = 1.2331f64;
let y = 1.2332f64;
if (y - x).abs() > 0.0001 {
println!("Success!");
}
}