aboutsummaryrefslogtreecommitdiffstats
path: root/docs/control-structures.rst
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2016-10-12 16:25:17 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2016-10-19 21:02:50 +0800
commit76c856397a58c42d88761fee95e89472494759d5 (patch)
tree2412fa136b649688f6f60c556e88d3507e434334 /docs/control-structures.rst
parent4f191d1f6fbdf9b424c4292db0ec10f5040a0b09 (diff)
downloaddexon-solidity-76c856397a58c42d88761fee95e89472494759d5.tar.gz
dexon-solidity-76c856397a58c42d88761fee95e89472494759d5.tar.zst
dexon-solidity-76c856397a58c42d88761fee95e89472494759d5.zip
Minor documentation fixes
Diffstat (limited to 'docs/control-structures.rst')
-rw-r--r--docs/control-structures.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/control-structures.rst b/docs/control-structures.rst
index c754de64..597829d3 100644
--- a/docs/control-structures.rst
+++ b/docs/control-structures.rst
@@ -7,7 +7,7 @@ Expressions and Control Structures
Control Structures
===================
-Most of the control structures from C/JavaScript are available in Solidity
+Most of the control structures from C or 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 or JavaScript.
@@ -785,7 +785,7 @@ Conventions in Solidity
In contrast to EVM assembly, Solidity knows types which are narrower than 256 bits,
e.g. ``uint24``. In order to make them more efficient, most arithmetic operations just
-treat them as 256 bit numbers and the higher-order bits are only cleaned at the
+treat them as 256-bit numbers and the higher-order bits are only cleaned at the
point where it is necessary, i.e. just shortly before they are written to memory
or before comparisons are performed. This means that if you access such a variable
from within inline assembly, you might have to manually clean the higher order bits