From 8dd5380c5d43c95ef051fa763fe1a41c25aaeaf8 Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Wed, 11 Dec 2024 16:02:38 +0100 Subject: [PATCH] improve docs --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fb3cea53..d8279e1e 100644 --- a/README.md +++ b/README.md @@ -269,7 +269,7 @@ Generator functions must be marked with `^:gen`: (vec (foo)) ;;=> [1 2 3 4] ``` -Anonymous functions must have `^:gen` on the argument vector: +Anonymous functions must have `^:gen` on the `fn` symbol: ``` clojure (^:gen fn [] (js-yield 1) (js-yield 2))