Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion range.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (vr *versionRange) rangeFunc() Range {
// A Range can be used to check if a Version satisfies it:
//
// range, err := semver.ParseRange(">1.0.0 <2.0.0")
// range(semver.MustParse("1.1.1") // returns true
// range(semver.MustParse("1.1.1")) // returns true
type Range func(Version) bool

// OR combines the existing Range with another Range using logical OR.
Expand Down
2 changes: 1 addition & 1 deletion v4/range.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (vr *versionRange) rangeFunc() Range {
// A Range can be used to check if a Version satisfies it:
//
// range, err := semver.ParseRange(">1.0.0 <2.0.0")
// range(semver.MustParse("1.1.1") // returns true
// range(semver.MustParse("1.1.1")) // returns true
type Range func(Version) bool

// OR combines the existing Range with another Range using logical OR.
Expand Down