Merge pull request #6847 from ethereum/style-fixes-libraries

[DOCS] Make libraries code examples conform to style guide
This commit is contained in:
chriseth 2019-05-27 17:17:22 +02:00 committed by GitHub
commit b836079006
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,6 +49,7 @@ more advanced example to implement a set).
pragma solidity >=0.4.22 <0.7.0; pragma solidity >=0.4.22 <0.7.0;
library Set { library Set {
// We define a new struct datatype that will be used to // We define a new struct datatype that will be used to
// hold its data in the calling contract. // hold its data in the calling contract.
@ -89,6 +90,7 @@ more advanced example to implement a set).
} }
} }
contract C { contract C {
Set.Data knownValues; Set.Data knownValues;