Skip to content

Commit

Permalink
remove array/struct limitation
Browse files Browse the repository at this point in the history
  • Loading branch information
xhliu committed Apr 1, 2021
1 parent 69c0e50 commit ab84aeb
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions docs/syntax.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Basic Types
Array Types
-----------
An array is a fixed-size list of values of the same basic type [#]_.
An array is a fixed-size list of values of the same basic type.

* **Array Literals** - a comma-separated list of expressions, enclosed in square brackets. Array size must be an integer constant greater than zero.

Expand Down Expand Up @@ -102,7 +102,7 @@ An array is a fixed-size list of values of the same basic type [#]_.
Struct Types
------------
A struct (or structure) is a collection of variables (can be of different basic types) under a single name [#]_.
A struct (or structure) is a collection of variables (can be of different basic types) under a single name.

* **Define Struct**

Expand Down Expand Up @@ -391,6 +391,3 @@ Scoping
=======
Scoping in sCrypt follows the prevailing scoping rules of C99 and Solidity.
Outer scope variable is shadowed by the inner scope variable of the same name.

.. [#] Currently, only one dimensional array is supported.
.. [#] Currently, nested struct is not supported.

0 comments on commit ab84aeb

Please sign in to comment.