Skip to content

Commit

Permalink
Make constructor optional
Browse files Browse the repository at this point in the history
  • Loading branch information
xhliu committed Aug 13, 2019
1 parent 687570e commit b112bed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/syntax.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Formal Specification
.. math::
\begin{align*}
contract &::= \mathrm{contract}\ \mathrm{ID}\ \{\ [var]^*\ constructor\ [function]^*\ [public]^+\ \}\\
contract &::= \mathrm{contract}\ \mathrm{ID}\ \{\ [var]^*\ [constructor]\ [function]^*\ [public]^+\ \}\\
var &::= formal;\\
formal &::= \mathrm{TYPE}\ \mathrm{ID}\\
function &::= \mathrm{function}\ \mathrm{ID}(formal[,\ formal]^*)\ \mathrm{returns}\ (\mathrm{TYPE})\ \{\ [stmt]^*\ \mathrm{return}\ expr;\ \}\\
Expand Down

0 comments on commit b112bed

Please sign in to comment.