aboutsummaryrefslogtreecommitdiffstats
path: root/docs/contracts.rst
diff options
context:
space:
mode:
authorMircea Moca <mocamircea@gmail.com>2016-08-19 22:47:57 +0800
committerGitHub <noreply@github.com>2016-08-19 22:47:57 +0800
commit01dc055d424ad79d11fc27f007a9b6893ffbf714 (patch)
tree9f0abc4663e97280d2c151174541d955d3624e80 /docs/contracts.rst
parentee51894e733be6c1bf73b51140c3bf2a08343825 (diff)
downloaddexon-solidity-01dc055d424ad79d11fc27f007a9b6893ffbf714.tar.gz
dexon-solidity-01dc055d424ad79d11fc27f007a9b6893ffbf714.tar.zst
dexon-solidity-01dc055d424ad79d11fc27f007a9b6893ffbf714.zip
Update contracts.rst
I think it's more clear now and without the risk of mentioning the yet discussed accessor concept
Diffstat (limited to 'docs/contracts.rst')
-rw-r--r--docs/contracts.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/contracts.rst b/docs/contracts.rst
index c38fdb9d..3ee98937 100644
--- a/docs/contracts.rst
+++ b/docs/contracts.rst
@@ -194,16 +194,16 @@ return parameter list for functions.
function setData(uint a) internal { data = a; }
uint public data;
}
- contract Caller {
+ contract D {
function readData(){
C c = new C();
- uint local = c.data(); // call accessor
+ uint local = c.data();
local = f(7); // error
}
}
-Other contracts can call ``c.data()`` to retrieve the value of data in state
-storage, but are not able to call ``f``. Contracts derived from ``C`` can call
+An other contract ``D`` can call ``c.data()`` to retrieve the value of data in state
+storage, is not able to call ``f``. Contracts derived from ``C`` can call
``setData`` to alter the value of ``data`` (but only in their own state).
.. index:: ! accessor;function, ! function;accessor