aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-03-11 17:51:45 +0800
committerchriseth <c@ethdev.com>2016-03-11 17:51:45 +0800
commitee0ba31c2b6a2cc40bf12198e84f8bb4cd64414a (patch)
treeb04a789c93fe115794a9522959e056f3f098e531
parent34d714f75846a55eac819818573499b0fd59a85b (diff)
parent770d509af6df4e6b932175b25400628830dc9049 (diff)
downloaddexon-solidity-ee0ba31c2b6a2cc40bf12198e84f8bb4cd64414a.tar.gz
dexon-solidity-ee0ba31c2b6a2cc40bf12198e84f8bb4cd64414a.tar.zst
dexon-solidity-ee0ba31c2b6a2cc40bf12198e84f8bb4cd64414a.zip
Merge pull request #425 from uberlaufer/patch-1
Update contracts.rst
-rw-r--r--docs/contracts.rst15
1 files changed, 7 insertions, 8 deletions
diff --git a/docs/contracts.rst b/docs/contracts.rst
index 691da7fe..b2358af5 100644
--- a/docs/contracts.rst
+++ b/docs/contracts.rst
@@ -4,10 +4,10 @@
Contracts
##########
-Contracts in Solidity what classes are in object oriented languages.
-They persistent data in state variables and functions that can modify these variables.
-Calling a function on a different contract (instance) will perform an EVM
-function call and thus switch the context such that state variables are
+Contracts in Solidity are what classes are in object oriented languages. They
+contain persistent data in state variables and functions that can modify these
+variables. Calling a function on a different contract (instance) will perform
+an EVM function call and thus switch the context such that state variables are
inaccessible.
.. index:: ! contract;creation
@@ -184,10 +184,9 @@ return parameter list for functions.
uint public data;
}
-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 `setData` to alter the
-value of `data` (but only in their own state).
+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
+`setData` to alter the value of `data` (but only in their own state).
.. index:: ! accessor;function, ! function;accessor