Skip to content

Commit

Permalink
use type constructor for hash types to avoid confusion, not hash func…
Browse files Browse the repository at this point in the history
…tions
  • Loading branch information
xhliu committed May 18, 2020
1 parent 1f13b4f commit e49e2fa
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 @@ -96,19 +96,19 @@ To cast a supertype ``bytes`` to them, a function of the type name must be expli

.. code-block:: solidity
Ripemd160 r = hash160(b'0011223344556677889999887766554433221100');
Ripemd160 r = Ripemd160(b'0011223344556677889999887766554433221100');
* **Sha1** - a SHA-1 hash type.

.. code-block:: solidity
Sha1 s = sha1(b'0011223344556677889999887766554433221100');
Sha1 s = Sha1(b'0011223344556677889999887766554433221100');
* **Sha256** - a SHA-256 hash type.

.. code-block:: solidity
Sha256 s = hash256(b'00112233445566778899aabbccddeeffffeeddccbbaa99887766554433221100');
Sha256 s = Sha256(b'00112233445566778899aabbccddeeffffeeddccbbaa99887766554433221100');
``if`` statement
================
Expand Down

0 comments on commit e49e2fa

Please sign in to comment.