diff options
| author | mokou <mokou@fastmail.com> | 2022-07-14 17:34:50 +0200 |
|---|---|---|
| committer | mokou <mokou@fastmail.com> | 2022-07-14 17:34:50 +0200 |
| commit | b644558c19dd1f0319204f50c1c162562edb79b1 (patch) | |
| tree | b87116c2bdf6071d0e1707137a82e94bb2d4231a /exercises/option/option1.rs | |
| parent | 472d7944f95e41d8fa9f78ac2870a3827afdc544 (diff) | |
fix: rename option to options
Diffstat (limited to 'exercises/option/option1.rs')
| -rw-r--r-- | exercises/option/option1.rs | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/exercises/option/option1.rs b/exercises/option/option1.rs deleted file mode 100644 index 17cf4f6..0000000 --- a/exercises/option/option1.rs +++ /dev/null @@ -1,23 +0,0 @@ -// option1.rs -// Make me compile! Execute `rustlings hint option1` for hints - -// I AM NOT DONE - -// you can modify anything EXCEPT for this function's signature -fn print_number(maybe_number: Option<u16>) { - println!("printing: {}", maybe_number.unwrap()); -} - -fn main() { - print_number(13); - print_number(99); - - let mut numbers: [Option<u16>; 5]; - for iter in 0..5 { - let number_to_add: u16 = { - ((iter * 1235) + 2) / (4 * 16) - }; - - numbers[iter as usize] = number_to_add; - } -} |
