Skip to content

Conversation

@pkulikov
Copy link
Contributor

@pkulikov pkulikov commented May 28, 2018

During PR #5597, I've thought why not to unify all iteration keywords topics. This PR update while and do topics:

  • Used the same topic structure as in the foreach topic: definition - break - continue - other statements to exit - example.
  • Moved code to the dotnet/samples repo: Added do and while code snippets samples#86
  • Simplified the while loop examples. In the current edition, those examples serve not the while loop, but the evaluation of the increment operator, which is off-topic, I would say.
  • Rephrased ...until a specified expression evaluates to false to ...while a specified boolean expression evaluates to true, which might be easier to grasp.

Depends on dotnet/samples#86

@pkulikov pkulikov requested a review from BillWagner as a code owner May 28, 2018 20:42
@mairaw mairaw added the 🚧 Hold for related PR Indicates a PR can only be merged when other related PRs are merged (see comments for links) label May 29, 2018
@BillWagner
Copy link
Member

closing and reopening to start a new build. dotnet/samples#86 has been merged.

@BillWagner BillWagner closed this May 29, 2018
@BillWagner BillWagner reopened this May 29, 2018
Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

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

This is a really nice improvement @pkulikov

I had a couple very small nits to address before we :shipit:

Thanks again for all the contributions. We appreciate it.


## Example

The following example shows the usage of the `do` statement. Select the **Run** to run the example code. After that you can modify the code and run it again.
Copy link
Member

Choose a reason for hiding this comment

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

nit: "Select Run" instead of "Select the Run"


## Example

The following example shows the usage of the `while` statement. Select the **Run** to run the example code. After that you can modify the code and run it again.
Copy link
Member

Choose a reason for hiding this comment

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

nit: "Select Run" instead of "Select the Run"

@pkulikov
Copy link
Contributor Author

@BillWagner thank you for the review; I've fixed both nits.

@BillWagner
Copy link
Member

Thanks @pkulikov I'll :shipit: as soon as the build finishes.

@BillWagner BillWagner merged commit 6dac377 into dotnet:master May 29, 2018
@pkulikov pkulikov deleted the while-do-keywords-update branch May 29, 2018 16:26
@mairaw mairaw removed the 🚧 Hold for related PR Indicates a PR can only be merged when other related PRs are merged (see comments for links) label Nov 10, 2019
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.

3 participants