From 6eedc973ac452b09852a3f6110b74529538a6071 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 19 Oct 2023 20:21:18 +0300 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4d9d437..08947d7 100644 --- a/README.md +++ b/README.md @@ -184,7 +184,7 @@ parse(` You can make any modifications to **Goldstein AST** and then `print` back to **Goldstein**: -``` +```js import {parse, print} from 'goldstein'; const ast = parse(`const t = try f('hello')`); @@ -195,7 +195,7 @@ const source = print(ast); You can even convert **JavaScript** to **Goldstein** with: -``` +```js import {convert} from 'goldstein'; const ast = convert(`const t = tryCatch(f, 'hello');`;