Skip to content

Commit

Permalink
validate: fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ainar-g committed Jan 15, 2025
1 parent 934e92f commit a76f897
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions validate/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ func InRange[T cmp.Ordered](name string, v, min, max T) (err error) {
return nil
}

// LessThan returns an error if a is greater than or equal to min. The
// underlying error of err is [errors.ErrOutOfRange].
// LessThan returns an error if a is greater than or equal to b. The underlying
// error of err is [errors.ErrOutOfRange].
//
// NOTE: NaN is also considered less than anything, since [cmp.Compare] sorts
// it below -Infinity.
Expand Down

0 comments on commit a76f897

Please sign in to comment.