Skip to content

Commit

Permalink
Replaced erroneous "transaction" with "function".
Browse files Browse the repository at this point in the history
  • Loading branch information
mcoblenz committed Dec 13, 2019
1 parent a507806 commit c5b7ac5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion solidity_user_guide/source/tutorial/ownership4.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Invoking functions

Handling Errors
-----------------
Errors can be flagged with ``revert``, which stops execution and discards all of the changes that have occurred since the outermost transaction started. A description of the error can be provided as well. An example of usage is given below.
Errors can be flagged with ``revert``, which stops execution and discards all of the changes that have occurred since the outermost function started. A description of the error can be provided as well. An example of usage is given below.
::

function checkAmount(Money m) public { // m is unowned
Expand Down
4 changes: 2 additions & 2 deletions solidity_user_guide/source/tutorial/states3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ When unowned references are used in dynamic state tests, the body of the test do

::

transaction foo(LightSwitch s) { // s is unowned
function foo(LightSwitch s) { // s is unowned
if (s.state() == LightSwitch.State.On) {
s.turnOff(); // STILL can't change state of s through an unowned reference
}
}

If you need to call a transaction that needs the referenced object to be in a particular state, you need to start with at least a ``shared`` reference (if not an ``owned`` or state-specifying reference).
If you need to call a function that needs the referenced object to be in a particular state, you need to start with at least a ``shared`` reference (if not an ``owned`` or state-specifying reference).

Shared references
------------------
Expand Down

0 comments on commit c5b7ac5

Please sign in to comment.