summaryrefslogtreecommitdiff
path: root/src/cljlib.fnl
diff options
context:
space:
mode:
authorAndrey Listopadov <andreyorst@gmail.com>2023-08-28 23:56:23 +0300
committerAndrey Listopadov <andreyorst@gmail.com>2023-08-28 23:56:23 +0300
commitece7f872860d286536cb1a5d4f9d5b7da6dc88be (patch)
treea7f6686394c3f510f5cfabb68ff88881894f7274 /src/cljlib.fnl
parentae389b9480d46091bfd9b6843aebdc48aa577c16 (diff)
update docs, fix doctests, include macros in the docs
Diffstat (limited to 'src/cljlib.fnl')
-rw-r--r--src/cljlib.fnl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cljlib.fnl b/src/cljlib.fnl
index 8ce0733..df63e4f 100644
--- a/src/cljlib.fnl
+++ b/src/cljlib.fnl
@@ -2336,7 +2336,7 @@ Bear in mind, that since the sequence is lazy it should be realized or
truncated before the file is closed:
``` fennel
-(let [lines (with-open [f (io.open \"init.fnl\" :r)]
+(let [lines (with-open [f (io.open \"cljlib.fnl\" :r)]
(line-seq f))]
;; this will error because only first line was realized, but the
;; file was closed before the rest of lines were cached
@@ -2346,7 +2346,7 @@ truncated before the file is closed:
Sequence is realized with `doall` before file was closed and can be shared:
``` fennel
-(let [lines (with-open [f (io.open \"init.fnl\" :r)]
+(let [lines (with-open [f (io.open \"cljlib.fnl\" :r)]
(doall (line-seq f)))]
(assert-is (pcall next lines)))
```