Bring code examples inline with style guide

Remove visibility
This commit is contained in:
Chris Ward 2019-05-29 14:35:48 +02:00
parent c9e2d388b5
commit b015d2cd40

View File

@ -33,6 +33,7 @@ Let us rewrite the set example from the
pragma solidity >=0.4.16 <0.7.0;
// This is the same code as before, just without comments
library Set {
struct Data { mapping(uint => bool) flags; }
@ -66,6 +67,7 @@ Let us rewrite the set example from the
}
}
contract C {
using Set for Set.Data; // this is the crucial change
Set.Data knownValues;