Docs style guide

This commit is contained in:
Leonardo Alt
2019-12-13 12:40:33 +01:00
parent df076e072d
commit 3198f55d24
2 changed files with 26 additions and 21 deletions
+2 -2
View File
@@ -115,7 +115,7 @@ Details are given in the following example.
// Here, we only specify `override` and not `virtual`.
// This means that contracts deriving from `PriceFeed`
// cannot change the behaviour of `kill` anymore.
function kill() public override (Mortal, Named) { Named.kill(); }
function kill() public override(Mortal, Named) { Named.kill(); }
function get() public view returns(uint r) { return info; }
uint info;
@@ -297,7 +297,7 @@ of the variable:
contract A
{
function f() external virtual pure returns(uint) { return 5; }
function f() external pure virtual returns(uint) { return 5; }
}
contract B is A