Skip to content

Clarify TODO comments in options2 exercise#2336

Open
jjstrnad wants to merge 1 commit intorust-lang:mainfrom
jjstrnad:improve-options2-instructions
Open

Clarify TODO comments in options2 exercise#2336
jjstrnad wants to merge 1 commit intorust-lang:mainfrom
jjstrnad:improve-options2-instructions

Conversation

@jjstrnad
Copy link

Fixes #1990

Summary

Clarified TODO comments in options2 exercise to indicate that the code needs to be completed rather than replaced.

Problem

The current TODO comments say "Make this an if-let statement" and "Make this a while-let statement", which implies the existing code is already a valid statement that needs to be transformed into something else. This caused confusion for many learners who expected to replace valid code with different valid code.

In reality, the code is syntactically incomplete and needs keywords added (if let and while let) to become valid statements.

Solution

Updated the TODO comments to explicitly state that learners need to complete the incomplete statements by adding the missing keywords and patterns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

options2: unclear what to do and why

1 participant