Skip to content

Commit

Permalink
improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Dec 11, 2024
1 parent bf9b15b commit 8dd5380
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 8dd5380

Please sign in to comment.