From 6f733b8be8732b026e97cf1441c412057f4d85d0 Mon Sep 17 00:00:00 2001 From: Jakub Jankiewicz Date: Sun, 25 Feb 2024 14:05:18 +0100 Subject: [PATCH] change url to fetch example --- docs/src/components/Interpreter/examples.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/components/Interpreter/examples.ts b/docs/src/components/Interpreter/examples.ts index 503459f9f..ad4cc0085 100644 --- a/docs/src/components/Interpreter/examples.ts +++ b/docs/src/components/Interpreter/examples.ts @@ -47,14 +47,14 @@ const examples = [ ;; of JavaScript methods calls ;; no need to use Promises becasue of automagic ;; promise resolving -(let ((msg (--> (fetch "https://scheme.org.pl") +(let ((msg (--> (fetch "https://scheme.org.pl/test/") (text) (match re) 1))) (print msg)) ;; explicit promise handling with quotation -(let ((promise (--> '>(fetch "https://scheme.org.pl") +(let ((promise (--> '>(fetch "https://scheme.org.pl/test/") (then (lambda (res) (res.text))) (then (lambda (x)