Skip to content

Fix assert in docs for for list.any() - #951

Merged
lpil merged 1 commit into
gleam-lang:mainfrom
corviraptor:corviraptor-list-any-doc-fix
Oct 8, 2026
Merged

lpil merged 1 commit into
gleam-lang:mainfrom
corviraptor:corviraptor-list-any-doc-fix

Conversation

@corviraptor

Copy link
Copy Markdown
Contributor

The docs for list.any() have assert list.any([4, 3], fn(x) { x > 4 }), which fails. I just inverted the condition, but if anyone has a better idea let me know!

@lpil lpil left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!!

@lpil
lpil merged commit b987e97 into gleam-lang:main Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants