Skip to content

Commit 4a384ca

Browse files
committed
docs(option): improve further information
1 parent 84461c2 commit 4a384ca

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

exercises/option/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ Option types are very common in Rust code, as they have a number of uses:
1616
- [Option Enum Format](https://doc.rust-lang.org/stable/book/ch10-01-syntax.html#in-enum-definitions)
1717
- [Option Module Documentation](https://doc.rust-lang.org/std/option/)
1818
- [Option Enum Documentation](https://doc.rust-lang.org/std/option/enum.Option.html)
19+
- [if let](https://doc.rust-lang.org/rust-by-example/flow_control/if_let.html)
20+
- [while let](https://doc.rust-lang.org/rust-by-example/flow_control/while_let.html)

exercises/option/option1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
// I AM NOT DONE
55

6-
// you can modify anything EXCEPT for this function's sig
6+
// you can modify anything EXCEPT for this function's signature
77
fn print_number(maybe_number: Option<u16>) {
88
println!("printing: {}", maybe_number.unwrap());
99
}

0 commit comments

Comments
 (0)