docs exercise

This commit is contained in:
Nathan Stocks
2021-06-13 00:08:55 -06:00
parent c63dbe2f57
commit c1d451049d
5 changed files with 54 additions and 7 deletions

View File

@@ -8,7 +8,7 @@
// Challenge: Clippy doesn't find *everything*. What else would you change to make this code better?
const pi:f32=3.14159265358979323846;
fn count_to_5()->i32{let mut foo =(0);loop{if{foo>pi as i32}{if(foo > 5){break;}}foo=foo+1;}return 5;}
fn count_to_5()->i32{let mut foo =0;loop{if foo>pi as i32{if foo > 5{break;}}foo=foo+1;}return 5;}
fn main() {
println!("I can count to {}", count_to_5());
}