Merge pull request #1644 from AleoHQ/bug/1633-remove-console-debug-grammar

fix console debug grammar discrep
This commit is contained in:
Collin Chin 2022-02-28 08:55:34 -08:00 committed by GitHub
commit a240cf451d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -1598,7 +1598,7 @@ The latter takes either no argument,
or a format string followed by expressions,
whose number must match the number of containers `{}` in the format string.
Note that the console function names are identifiers, not keywords.
There are three kinds of print commands.
There are two kinds of print commands.
<a name="console-statement"></a>
```abnf
@ -1627,7 +1627,7 @@ Go to: _[expression](#user-content-expression)_;
<a name="print-function"></a>
```abnf
print-function = %s"debug" / %s"error" / %s"log"
print-function = %s"error" / %s"log"
```
<a name="print-arguments"></a>

View File

@ -962,7 +962,7 @@ assignment-statement = expression assignment-operator expression ";"
; or a format string followed by expressions,
; whose number must match the number of containers `{}` in the format string.
; Note that the console function names are identifiers, not keywords.
; There are three kinds of print commands.
; There are two kinds of print commands.
console-statement = %s"console" "." console-call ";"
@ -971,7 +971,7 @@ console-call = assert-call
assert-call = %s"assert" "(" expression ")"
print-function = %s"debug" / %s"error" / %s"log"
print-function = %s"error" / %s"log"
print-arguments = "(" string-literal *( "," expression ) ")"