Merge pull request #904 from mocamircea/patch-9

Update control-structures.rst
This commit is contained in:
chriseth 2016-08-16 15:08:05 +02:00 committed by GitHub
commit 70994f4996

View File

@ -10,7 +10,7 @@ Control Structures
Most of the control structures from C/JavaScript are available in Solidity
except for ``switch`` and ``goto``. So
there is: ``if``, ``else``, ``while``, ``for``, ``break``, ``continue``, ``return``, ``? :``, with
the usual semantics known from C / JavaScript.
the usual semantics known from C or JavaScript.
Parentheses can *not* be omitted for conditionals, but curly brances can be omitted
around single-statement bodies.