mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
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:
commit
885d56888f
@ -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