From ae0654443cdfe07737bf4e683e1f41ab6e96d6e2 Mon Sep 17 00:00:00 2001 From: Mircea Moca Date: Tue, 16 Aug 2016 10:45:04 +0300 Subject: Update control-structures.rst typo -> coherence with previous occurrence in the document of C/JavaScript --- docs/control-structures.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/control-structures.rst b/docs/control-structures.rst index e03d8d6a..71fecb71 100644 --- a/docs/control-structures.rst +++ b/docs/control-structures.rst @@ -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/JavaScript. Parentheses can *not* be omitted for conditionals, but curly brances can be omitted around single-statement bodies. -- cgit From d24c431ce5e34ac6fc60d81d44bd26fb1231efa4 Mon Sep 17 00:00:00 2001 From: Mircea Moca Date: Tue, 16 Aug 2016 16:06:08 +0300 Subject: Update control-structures.rst --- docs/control-structures.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/control-structures.rst b/docs/control-structures.rst index 71fecb71..eb337928 100644 --- a/docs/control-structures.rst +++ b/docs/control-structures.rst @@ -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. -- cgit