From 399cb1811d7614d8c466c66e626f05b17d6023f5 Mon Sep 17 00:00:00 2001 From: luca paterlini Date: Tue, 20 Jan 2026 18:38:31 +0100 Subject: [PATCH] Update map.md --- src/error/option_unwrap/map.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/error/option_unwrap/map.md b/src/error/option_unwrap/map.md index c063115d52..12991843ab 100644 --- a/src/error/option_unwrap/map.md +++ b/src/error/option_unwrap/map.md @@ -66,8 +66,9 @@ fn main() { let potato = None; let cooked_apple = cook(chop(peel(apple))); - let cooked_carrot = cook(chop(peel(carrot))); // Let's try the simpler looking `process()` now. + let cooked_carrot = process(carrot); + let cooked_potato = process(potato); eat(cooked_apple);