Skip to content

Commit

Permalink
change url to fetch example
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Feb 25, 2024
1 parent 8d9e0a0 commit 6f733b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/components/Interpreter/examples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6f733b8

Please sign in to comment.