From 4708f8d4561ebd12d33d2e1791a53d5b3e9ac114 Mon Sep 17 00:00:00 2001 From: JJ Strnad Date: Fri, 23 Jan 2026 10:22:39 -0800 Subject: [PATCH] Clarify TODO comments in options2 exercise --- exercises/12_options/options2.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/exercises/12_options/options2.rs b/exercises/12_options/options2.rs index 07c27c6ec2..fab7091873 100644 --- a/exercises/12_options/options2.rs +++ b/exercises/12_options/options2.rs @@ -9,7 +9,8 @@ mod tests { let target = "rustlings"; let optional_target = Some(target); - // TODO: Make this an if-let statement whose value is `Some`. + // TODO: Complete this if-let statement by adding the missing keywords. + // The pattern should match oon 'Some'. word = optional_target { assert_eq!(word, target); } @@ -26,9 +27,9 @@ mod tests { let mut cursor = range; - // TODO: Make this a while-let statement. Remember that `Vec::pop()` - // adds another layer of `Option`. You can do nested pattern matching - // in if-let and while-let statements. + // TODO: Complete this while-let statement by adding the missing keywords. + // Remember that `Vec::pop()` adds another layer of `Option`. + // You can do nested pattern matching in if-let and while-let statements. integer = optional_integers.pop() { assert_eq!(integer, cursor); cursor -= 1;