From 070d081d7ccec7e22f137a44a1112ad6b04f43bc Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 19 Oct 2023 20:26:01 +0300 Subject: [PATCH] docs: readme: typos --- README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 3cab9f3..c85fb5e 100644 --- a/README.md +++ b/README.md @@ -185,7 +185,10 @@ parse(` You can make any modifications to **Goldstein AST** and then `print` back to **Goldstein**: ```js -import {parse, print} from 'goldstein'; +import { + parse, + print, +} from 'goldstein'; const ast = parse(`const t = try f('hello')`); const source = print(ast); @@ -198,10 +201,10 @@ You can even convert **JavaScript** to **Goldstein** with: ```js import {convert} from 'goldstein'; -const ast = convert(`const t = tryCatch(f, 'hello');`; +const ast = convert(`const t = tryCatch(f, 'hello')`); // returns -`const t = try f('hello')`) +`const t = try f('hello')`; ``` ## Keywords @@ -227,13 +230,12 @@ function hello() { } ``` - ### `append array` Append new elements to an array just like in Swift: ```js -const a = [1]; +let a = [1]; a += [2, 3]; ```