diff --git a/docs/miscellaneous.rst b/docs/miscellaneous.rst index ff80b01ae..22eac11f6 100644 --- a/docs/miscellaneous.rst +++ b/docs/miscellaneous.rst @@ -64,10 +64,11 @@ So for the following contract snippet:: pragma solidity >=0.4.0 <0.7.0; + contract C { - struct s { uint a; uint b; } - uint x; - mapping(uint => mapping(uint => s)) data; + struct S { uint a; uint b; } + uint x; + mapping(uint => mapping(uint => S)) data; } The position of ``data[4][9].b`` is at ``keccak256(uint256(9) . keccak256(uint256(4) . uint256(1))) + 1``.