Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
xhliu committed Mar 18, 2020
1 parent 065ef16 commit b4bb4f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ is functionally equivalent to
``return``
----------
Due to the lack of native ``return`` symantics support in script, a function currently must end with a ``return`` statement and it is the only valid place for a ``return`` statement.
Due to the lack of native ``return`` semantics support in script, a function currently must end with a ``return`` statement and it is the only valid place for a ``return`` statement.
This requirement may be relaxed in the future. This is usually not a problem since it can be circumvented as follows:

.. code-block:: solidity
Expand Down Expand Up @@ -68,7 +68,7 @@ Recursion
---------
Recursion is disallowed. A function cannot call itself in its body.

.. Warning:: Indirect recursion detection is currently not implemented. If function A calles function B, which in turn calls A, the compiltion process will hang. Care must be taken to avoid doing so.
.. Warning:: Indirect recursion detection is currently not implemented. If function A calles function B, which in turn calls A, the compilation process will hang. Care must be taken to avoid doing so.


Library Functions
Expand Down Expand Up @@ -120,7 +120,7 @@ bytes Operations

* ``reverseBytes20(bytes b)`` ``reverseBytes32(bytes b)``

Returns reversed bytes of ``b``, which is of 20/32 bytes. They are often userful when converting a number between little-endian and big-endian.
Returns reversed bytes of ``b``, which is of 20/32 bytes. They are often useful when converting a number between little-endian and big-endian.

.. code-block:: solidity
Expand Down

0 comments on commit b4bb4f5

Please sign in to comment.