Skip to content

Commit

Permalink
Fix typo in README
Browse files Browse the repository at this point in the history
  • Loading branch information
BooleanCat authored Oct 28, 2024
1 parent baa7be0 commit 5da972b
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 @@ -434,7 +434,7 @@ for number := range itx.FromChannel(items).Exclude(filter.IsZero) {
### Compact

Compact yields all values from a delegate iterator that are not zero values. It is functionally
equivalent to `it.Filter(delegate, filter.IsZero)`.
equivalent to `it.Exclude(delegate, filter.IsZero)`.

```go
words := it.Compact(slices.Values([]string{"foo", "", "bar", "", ""}))
Expand Down

0 comments on commit 5da972b

Please sign in to comment.