Skip to content

Commit 5da972b

Browse files
authored
Fix typo in README
1 parent baa7be0 commit 5da972b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ for number := range itx.FromChannel(items).Exclude(filter.IsZero) {
434434
### Compact
435435

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

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

0 commit comments

Comments
 (0)