Skip to content

docs: clarify nested loop usage in layout tutorial#13427

Open
harshyadavDeveloper wants to merge 1 commit into
flutter:mainfrom
harshyadavDeveloper:fix-layout-tutorial-nested-loop-docs
Open

docs: clarify nested loop usage in layout tutorial#13427
harshyadavDeveloper wants to merge 1 commit into
flutter:mainfrom
harshyadavDeveloper:fix-layout-tutorial-nested-loop-docs

Conversation

@harshyadavDeveloper
Copy link
Copy Markdown
Contributor

@harshyadavDeveloper harshyadavDeveloper commented May 25, 2026

Description of what this PR is changing or adding, and why:

Clarifies the challenge instructions in the layout tutorial by
correcting the description of the guess variable type.

The previous wording incorrectly implied that guess itself was a
record with the type ({String char, HitType type}), when it is
actually a collection of records. The updated text explains that each
element in guess is a record and explicitly mentions using a nested
loop to iterate over the letters.

This aligns the tutorial instructions with the provided solution code
and avoids confusion for readers attempting the challenge.

Issues fixed by this PR (if any):

Fixes #13422

PRs or commits this PR depends on (if any):

None.

Presubmit checklist

@harshyadavDeveloper harshyadavDeveloper requested review from a team and sfshaza2 as code owners May 25, 2026 04:47
@harshyadavDeveloper
Copy link
Copy Markdown
Contributor Author

@sfshaza2 This PR updates the tutorial wording to clarify the nested loop and correct the guess variable type description. Would appreciate a review when you have time. Thanks!

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the tutorial documentation in layout.md by clarifying that each element in the guess variable is a record and adding a hint to use a nested loop for iterating over letters. I have no feedback to provide as there were no review comments.

Copy link
Copy Markdown
Member

@piedcipher piedcipher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

Misleading description of guess variable type in Layout tutorial (step 4)

2 participants