Update introduction.md#2479
Conversation
Previously, the comment implied that the loop executes only when the condition is true, which is misleading for a do-while loop. Updated the comment to clearly reflect that the loop body executes at least once before the condition (x > 10) is evaluated, and continues only if the condition remains true. This improves readability and helps avoid confusion between while and do-while behavior.
|
Hello. Thanks for opening a PR on Exercism 🙂 We ask that all changes to Exercism are discussed on our Community Forum before being opened on GitHub. To enforce this, we automatically close all PRs that are submitted. That doesn't mean your PR is rejected but that we want the initial discussion about it to happen on our forum where a wide range of key contributors across the Exercism ecosystem can weigh in. You can use this link to copy this into a new topic on the forum. If we decide the PR is appropriate, we'll reopen it and continue with it, so please don't delete your local branch. If you're interested in learning more about this auto-responder, please read this blog post. Note: If this PR has been pre-approved, please link back to this PR on the forum thread and a maintainer or staff member will reopen it. |
Previously, the comment implied that the loop executes only when the condition is true, which is misleading for a do-while loop.
Updated the comment to clearly reflect that the loop body executes at least once before the condition (x > 10) is evaluated, and continues only if the condition remains true.
This improves readability and helps avoid confusion between while and do-while behavior.