We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 535c98d commit 4dd1038Copy full SHA for 4dd1038
posts/2020-07-16-Rust-1.45.0.md
@@ -78,9 +78,9 @@ fn cast(x: f32) -> u8 {
78
79
fn main() {
80
let f = 300.0;
81
-
+
82
let x = cast(f);
83
84
println!("x: {}", x);
85
}
86
```
@@ -117,7 +117,7 @@ fn main() {
117
let too_big = 300.0;
118
let too_small = -100.0;
119
let nan = f32::NAN;
120
121
println!("too_big_casted = {}", cast(too_big));
122
println!("too_small_casted = {}", cast(too_small));
123
println!("not_a_number_casted = {}", cast(nan));
0 commit comments