Skip to content

Commit

Permalink
Merge pull request #325 from apricote/patch-1
Browse files Browse the repository at this point in the history
docs: clarify semverCompare return value
  • Loading branch information
mattfarina committed May 3, 2022
2 parents 1509093 + 1dc71e9 commit ae1d86e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/semver.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ comparison operations.)

## semverCompare

A more robust comparison function is provided as `semverCompare`. This version
supports version ranges:
A more robust comparison function is provided as `semverCompare`. It returns `true` if
the constraint matches, or `false` if it does not match. This version supports version ranges:

- `semverCompare "1.2.3" "1.2.3"` checks for an exact match
- `semverCompare "^1.2.0" "1.2.3"` checks that the major and minor versions match, and that the patch
Expand Down

0 comments on commit ae1d86e

Please sign in to comment.