Skip to content

Commit 1c45d8d

Browse files
Update functions.md
1 parent a962991 commit 1c45d8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

statements/functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Functions can be declared with the following syntax:
44

5-
`fn ID "(" { ID "," } [ID] ")" "{" { stmt } "}"`
5+
`"const"? "fn" ID "(" ("const"? ID),* ")" "{" stmt* "}"`
66

77
For example, the following function will add two numbers:
88

0 commit comments

Comments
 (0)