aboutsummaryrefslogtreecommitdiffstats
path: root/docs/assembly.rst
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-08-28 19:47:44 +0800
committerGitHub <noreply@github.com>2017-08-28 19:47:44 +0800
commitb3c251c1548e8f85a76cf1aef8bb698daa5e5ec7 (patch)
tree8b9cc141b147222f455cfd2d346fd3152a4c9cc5 /docs/assembly.rst
parent5bd6254449ec08d93973ef9b070d56e3a745c8ea (diff)
parent550d646b9727603f39aeaa432d718cd2bb51cf85 (diff)
downloaddexon-solidity-b3c251c1548e8f85a76cf1aef8bb698daa5e5ec7.tar.gz
dexon-solidity-b3c251c1548e8f85a76cf1aef8bb698daa5e5ec7.tar.zst
dexon-solidity-b3c251c1548e8f85a76cf1aef8bb698daa5e5ec7.zip
Merge pull request #2831 from ethereum/docs
Various doc updates
Diffstat (limited to 'docs/assembly.rst')
-rw-r--r--docs/assembly.rst11
1 files changed, 6 insertions, 5 deletions
diff --git a/docs/assembly.rst b/docs/assembly.rst
index 6495699f..f5abcdc8 100644
--- a/docs/assembly.rst
+++ b/docs/assembly.rst
@@ -9,9 +9,10 @@ This assembly language can also be used as "inline assembly" inside Solidity
source code. We start with describing how to use inline assembly and how it
differs from standalone assembly and then specify assembly itself.
-TODO: Write about how scoping rules of inline assembly are a bit different
-and the complications that arise when for example using internal functions
-of libraries. Furthermore, write about the symbols defined by the compiler.
+.. note::
+ TODO: Write about how scoping rules of inline assembly are a bit different
+ and the complications that arise when for example using internal functions
+ of libraries. Furthermore, write about the symbols defined by the compiler.
.. _inline-assembly:
@@ -76,7 +77,7 @@ you really know what you are doing.
.. code::
- pragma solidity ^0.4.0;
+ pragma solidity ^0.4.12;
library VectorSum {
// This function is less efficient because the optimizer currently fails to
@@ -1005,7 +1006,7 @@ that modifies the stack and with every label that is annotated with a stack
adjustment. Every time a new
local variable is introduced, it is registered together with the current
stack height. If a variable is accessed (either for copying its value or for
-assignment), the appropriate DUP or SWAP instruction is selected depending
+assignment), the appropriate ``DUP`` or ``SWAP`` instruction is selected depending
on the difference between the current stack height and the
stack height at the point the variable was introduced.