Merge pull request #12357 from ethereum/fixYulExampleCode

Fix Yul example.
This commit is contained in:
chriseth 2021-12-01 16:53:42 +01:00 committed by GitHub
commit dcef56a531
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -529,13 +529,13 @@ The above would be transformed into
.. code-block:: yul
{
let _1 = 0x20
let _2 = 0x456
let _3 = mload(_2)
let _4 = mul(_3, _1)
let _5 = 0x123
let _6 = mload(_5)
let z = add(_6, _4)
let _1 := 0x20
let _2 := 0x456
let _3 := mload(_2)
let _4 := mul(_3, _1)
let _5 := 0x123
let _6 := mload(_5)
let z := add(_6, _4)
}
Note that this transformation does not change the order of opcodes or function calls.