Fix nits in error guide

Co-authored-by: Collin Chin <16715212+collinc97@users.noreply.github.com>
This commit is contained in:
Mazdak Farrokhzad 2022-02-23 11:55:37 +01:00 committed by GitHub
parent d98f08c179
commit 84617bd7af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# Member variables after after circuit functions
# Member variables after circuit functions
## Example

View File

@ -9,7 +9,7 @@ Erroneous code example:
```js
function main() {
console.fail("Huston we have a problem!");
console.fail("Houston we have a problem!");
}
```
@ -19,7 +19,7 @@ The compiler will reject this code with:
Error [EPAR0370007]: unexpected identifier: expected 'assert', 'error', 'log' -- got 'fail'
--> test.leo:2:11
|
2 | console.fail("Huston we have a problem!");
2 | console.fail("Houston we have a problem!");
| ^^^^
```
@ -35,7 +35,7 @@ which `.error(...)` will achieve, so we use that instead...:
```js
function main() {
console.error("Huston we have a problem!");
console.error("Houston we have a problem!");
}
```