Skip to content

Commit 399cb18

Browse files
Update map.md
1 parent e6ceffb commit 399cb18

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/error/option_unwrap/map.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,9 @@ fn main() {
6666
let potato = None;
6767
6868
let cooked_apple = cook(chop(peel(apple)));
69-
let cooked_carrot = cook(chop(peel(carrot)));
7069
// Let's try the simpler looking `process()` now.
70+
let cooked_carrot = process(carrot);
71+
7172
let cooked_potato = process(potato);
7273
7374
eat(cooked_apple);

0 commit comments

Comments
 (0)