mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Bring code examples in line with style guide
This commit is contained in:
parent
c9e2d388b5
commit
66fe9731fc
@ -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``.
|
||||
|
Loading…
Reference in New Issue
Block a user