Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor English fixes. #321

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions basics/controlling-flow.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Control flow

An application's flow can be controlled conditionally with `if` and `else`
An application's flow of control can be changed using `if` and `else`
statements:

if (a == 5) {
Expand All @@ -14,14 +14,14 @@ statements:
When an `if` or `else` block only contains one statement,
the braces can be omitted.

D provides the same operators as C/C++ and Java to test
D provides the same operators as C/C++ to test
variables for equality or compare them:

* `==` and `!=` for testing equality and inequality
* `<`, `<=`, `>` and `>=` for testing less than (or equal to) and greater than (or equal to)

For combining multiple conditions, the `||` operator represents
the logical *OR*, and `&&` the logical *AND*.
For combining multiple conditions, the `||` operator is used
for logical *OR*, and `&&` for logical *AND*.

D also defines a `switch`..`case` statement which executes one case
depending on the value of *one* variable. `switch`
Expand Down