diff --git a/docs/yul.rst b/docs/yul.rst index cf47c1e87..21b1cf3c4 100644 --- a/docs/yul.rst +++ b/docs/yul.rst @@ -1343,7 +1343,7 @@ Complete ERC20 Example /* ---------- calldata decoding functions ----------- */ function selector() -> s { - s := div(calldataload(0), 0x100000000000000000000000000000000000000000000000000000000) + s := shr(224, calldataload(0)) } function decodeAsAddress(offset) -> v {