Skip to content

Commit

Permalink
Fix comments on tree.{Excluded,Unbounded}
Browse files Browse the repository at this point in the history
  • Loading branch information
bradenaw committed Jun 3, 2023
1 parent 521ed08 commit 06830c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions container/tree/map.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ type Bound[K any] struct {
// Included returns a Bound that goes up to and including key.
func Included[K any](key K) Bound[K] { return Bound[K]{type_: boundInclude, key: key} }

// Included returns a Bound that goes up to but not including key.
// Excluded returns a Bound that goes up to but not including key.
func Excluded[K any](key K) Bound[K] { return Bound[K]{type_: boundExclude, key: key} }

// Included returns a Bound at the end of the collection.
// Unbounded returns a Bound at the end of the collection.
func Unbounded[K any]() Bound[K] { return Bound[K]{type_: boundUnbounded} }

// Range returns an iterator that yields the elements of the map between the given bounds in
Expand Down

0 comments on commit 06830c4

Please sign in to comment.