Update docs.

This commit is contained in:
Daniel Kirchner
2019-12-03 10:50:53 +01:00
parent 05baa23e8a
commit c33d233d88
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ provided (no implementation body ``{ }`` was given).::
pragma solidity >=0.4.0 <0.7.0;
abstract contract Feline {
function utterance() public returns (bytes32);
function utterance() public virtual returns (bytes32);
}
Such abstract contracts can not be instantiated directly. This is also true, if an abstract contract itself does implement
+3 -3
View File
@@ -53,13 +53,13 @@ Details are given in the following example.
// without body. If a contract does not implement all
// functions it can only be used as an interface.
abstract contract Config {
function lookup(uint id) public returns (address adr);
function lookup(uint id) public virtual returns (address adr);
}
abstract contract NameReg {
function register(bytes32 name) public;
function unregister() public;
function register(bytes32 name) public virtual;
function unregister() public virtual;
}