Skip to content

Commit ee0ba31

Browse files
committed
Merge pull request #425 from uberlaufer/patch-1
Update contracts.rst
2 parents 34d714f + 770d509 commit ee0ba31

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

docs/contracts.rst

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
Contracts
55
##########
66

7-
Contracts in Solidity what classes are in object oriented languages.
8-
They persistent data in state variables and functions that can modify these variables.
9-
Calling a function on a different contract (instance) will perform an EVM
10-
function call and thus switch the context such that state variables are
7+
Contracts in Solidity are what classes are in object oriented languages. They
8+
contain persistent data in state variables and functions that can modify these
9+
variables. Calling a function on a different contract (instance) will perform
10+
an EVM function call and thus switch the context such that state variables are
1111
inaccessible.
1212

1313
.. index:: ! contract;creation
@@ -184,10 +184,9 @@ return parameter list for functions.
184184
uint public data;
185185
}
186186

187-
Other contracts can call `c.data()` to retrieve the value of
188-
data in state storage, but are not able to call `f`.
189-
Contracts derived from `c` can call `setData` to alter the
190-
value of `data` (but only in their own state).
187+
Other contracts can call `c.data()` to retrieve the value of data in state
188+
storage, but are not able to call `f`. Contracts derived from `c` can call
189+
`setData` to alter the value of `data` (but only in their own state).
191190

192191
.. index:: ! accessor;function, ! function;accessor
193192

0 commit comments

Comments
 (0)