Skip to content

Commit

Permalink
Bug fix: remove hex int
Browse files Browse the repository at this point in the history
  • Loading branch information
xhliu committed Jan 23, 2020
1 parent fb3eb82 commit 492e44c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docs/syntax.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,13 @@ Basic Types
-----------

* **bool** - a boolean value ``true`` or ``false``.
* **int** - a signed integer of arbitrary length. Literals of this type can be specified in dec or hex.
* **int** - a signed integer of arbitrary length, whose literals are in decimal format.

.. code-block:: solidity
int a = -42;
int b = 0xab12;
* **bytes** - an array of bytes. Literals of this type are specified in hex.
* **bytes** - a variable length array of bytes, whose literals are in hex format.

.. code-block:: solidity
Expand All @@ -57,7 +56,7 @@ Subtypes of **bytes**
----------------------

These subtypes are more specific versions of ``bytes``, used to further improve type safety.
To cast a supertype ``bytes`` to them, a constructor must be explicitly called.
To cast a supertype ``bytes`` to them, a function of the type name must be explicitly called.

* **PubKey** - a public key type.

Expand Down

0 comments on commit 492e44c

Please sign in to comment.