mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Confirm to style guide
This commit is contained in:
parent
2491ce45a1
commit
5305dd6eac
@ -214,6 +214,7 @@ Given the contract:
|
||||
|
||||
pragma solidity >=0.4.16 <0.7.0;
|
||||
|
||||
|
||||
contract Foo {
|
||||
function bar(bytes3[2] memory) public pure {}
|
||||
function baz(uint32 x, bool y) public pure returns (bool r) { r = x > 32 || y; }
|
||||
@ -485,6 +486,7 @@ For example,
|
||||
|
||||
pragma solidity >=0.5.0 <0.7.0;
|
||||
|
||||
|
||||
contract Test {
|
||||
constructor() public { b = hex"12345678901234567890123456789012"; }
|
||||
event Event(uint indexed a, bytes32 b);
|
||||
@ -533,6 +535,7 @@ As an example, the code
|
||||
pragma solidity >=0.4.19 <0.7.0;
|
||||
pragma experimental ABIEncoderV2;
|
||||
|
||||
|
||||
contract Test {
|
||||
struct S { uint a; uint[] b; T[] c; }
|
||||
struct T { uint x; uint y; }
|
||||
|
Loading…
Reference in New Issue
Block a user