Skip to content

Commit

Permalink
exit(true) in example
Browse files Browse the repository at this point in the history
  • Loading branch information
xhliu committed Feb 11, 2020
1 parent f949083 commit fba054e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/syntax.rst
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ exit()

.. code-block:: solidity
contract TestSeparator {
contract TestPositiveEqual {
int x;
constructor(int x) {
Expand All @@ -128,7 +128,7 @@ exit()
public function equal(int y) {
if (y <= 0) {
exit(false);
exit(true);
}
require(y == this.x);
}
Expand All @@ -142,7 +142,7 @@ Note there is no ``;`` at the end.

.. code-block:: solidity
contract TestPositive {
contract TestSeparator {
public function equal(int y) {
int a = 0;
// separator 1
Expand Down

0 comments on commit fba054e

Please sign in to comment.