aboutsummaryrefslogtreecommitdiffstats
path: root/docs/control-structures.rst
diff options
context:
space:
mode:
authorDenton Liu <liu.denton+github@gmail.com>2016-07-12 05:04:51 +0800
committerDenton Liu <liu.denton+github@gmail.com>2016-07-13 05:06:49 +0800
commit5d113600aaf2fb59bebc7448f13b9af79dd70be5 (patch)
treed430013b62dd5ae209a546014ee6c772ed011a9e /docs/control-structures.rst
parentf8aec4d89e5abc41a896d209c17b400cbe812f6d (diff)
downloaddexon-solidity-5d113600aaf2fb59bebc7448f13b9af79dd70be5.tar
dexon-solidity-5d113600aaf2fb59bebc7448f13b9af79dd70be5.tar.gz
dexon-solidity-5d113600aaf2fb59bebc7448f13b9af79dd70be5.tar.bz2
dexon-solidity-5d113600aaf2fb59bebc7448f13b9af79dd70be5.tar.lz
dexon-solidity-5d113600aaf2fb59bebc7448f13b9af79dd70be5.tar.xz
dexon-solidity-5d113600aaf2fb59bebc7448f13b9af79dd70be5.tar.zst
dexon-solidity-5d113600aaf2fb59bebc7448f13b9af79dd70be5.zip
Fix typos
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 064996ac..f30a5bdd 100644
--- a/docs/control-structures.rst
+++ b/docs/control-structures.rst
@@ -422,7 +422,7 @@ The opcodes ``pushi`` and ``jumpdest`` cannot be used directly.
+-------------------------+------+-----------------------------------------------------------------+
| dup1 ... dup16 | | copy ith stack slot to the top (counting from top) |
+-------------------------+------+-----------------------------------------------------------------+
-| swap1 ... swap1 | `*` | swap topmost and ith stack slot below it |
+| swap1 ... swap16 | `*` | swap topmost and ith stack slot below it |
+-------------------------+------+-----------------------------------------------------------------+
| mload(p) | | mem[p..(p+32)) |
+-------------------------+------+-----------------------------------------------------------------+
@@ -661,7 +661,7 @@ variables. Take care that when you assign to variables that point to
memory or storage, you will only change the pointer and not the data.
There are two kinds of assignments: Functional-style and instruction-style.
-For functionaly-style assignments (``variable := value``), you need to provide a value in a
+For functional-style assignments (``variable := value``), you need to provide a value in a
functional-style expression that results in exactly one stack value
and for instruction-style (``=: variable``), the value is just taken from the stack top.
For both ways, the colon points to the name of the variable.