aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/contracts.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/contracts.rst b/docs/contracts.rst
index fa6b4564..3d6ee869 100644
--- a/docs/contracts.rst
+++ b/docs/contracts.rst
@@ -196,7 +196,7 @@ In the following example, ``D``, can call ``c.getData()`` to retrieve the value
function f(uint a) private pure returns(uint b) { return a + 1; }
function setData(uint a) public { data = a; }
- function getData() public returns(uint) { return data; }
+ function getData() public view returns(uint) { return data; }
function compute(uint a, uint b) internal pure returns (uint) { return a + b; }
}