Skip to content

Commit

Permalink
empty: update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
0x5a17ed committed May 28, 2024
1 parent b7e942f commit 5e6a831
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion itlib/empty.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (it EmptyIterator[T]) Value() (v T) {
return
}

// Empty returns an Iterator that is always exhausted.
// Empty returns a new [EmptyIterator] value.
func Empty[T any]() itkit.Iterator[T] {
return &EmptyIterator[T]{}
}

0 comments on commit 5e6a831

Please sign in to comment.