diff options
author | chriseth <c@ethdev.com> | 2016-03-31 00:59:43 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2016-03-31 00:59:43 +0800 |
commit | 2acdfc527e4be019ecacf2487f479cca9585bea1 (patch) | |
tree | 0db09c327f1141f867deb64773a2769dfc1e4f87 /docs | |
parent | c2cf8069968b617ff75d4bc5cf7f72990f71da54 (diff) | |
parent | bbfc580423e2338fa032b0e43b0199703b20cc89 (diff) | |
download | dexon-solidity-2acdfc527e4be019ecacf2487f479cca9585bea1.tar.gz dexon-solidity-2acdfc527e4be019ecacf2487f479cca9585bea1.tar.zst dexon-solidity-2acdfc527e4be019ecacf2487f479cca9585bea1.zip |
Merge pull request #464 from chriseth/doctypo
Typos in inline assembly documentation.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/control-structures.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/control-structures.rst b/docs/control-structures.rst index 72cf136d..2d959d1d 100644 --- a/docs/control-structures.rst +++ b/docs/control-structures.rst @@ -203,7 +203,7 @@ idea is that assembly libraries will be used to enhance the language in such way function at(address _addr) returns (bytes o_code) { assembly { // retrieve the size of the code, this needs assembly - let size := extcodesize(_addr); + let size := extcodesize(_addr) // allocate output byte array - this could also be done without assembly // by using o_code = new bytes(size) o_code := mload(0x40) @@ -427,7 +427,7 @@ Strings are stored left-aligned and cannot be longer than 32 bytes. assembly { 2 3 add "abc" and } -Functionaly Style +Functional Style ----------------- You can type opcode after opcode in the same way they will end up in bytecode. For example @@ -571,7 +571,7 @@ For both ways, the colon points to the name of the variable. let v := 0 // functional-style assignment as part of variable declaration let g := add(v, 2) sload(10) - := v // instruction style assignment, puts the result of sload(10) into v + =: v // instruction style assignment, puts the result of sload(10) into v } |