Merge pull request #6869 from ethereum/docs-style-fix-misc

[DOCS] Bring code examples for miscellaneous doc in line with style guide
This commit is contained in:
chriseth 2019-05-29 16:47:14 +02:00 committed by GitHub
commit 885d56888f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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``.