Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Delta456 committed Nov 19, 2023
1 parent 6aa950e commit 5cc6664
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vlib/semver/semver.v
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ pub fn (ver Version) satisfies(input string) bool {
pub fn (v1 Version) eq(v2 Version) bool {
return compare_eq(v1, v2)
}

// == checks if `v1` is equal to `v2`
pub fn (v1 Version) == (v2 Version) bool {
return compare_eq(v1, v2)
}
Expand All @@ -85,7 +85,7 @@ pub fn (v1 Version) gt(v2 Version) bool {
return compare_gt(v1, v2)
}

// lt returns `true` if `v1` is less than `v2`.
// < checks if `v1` is less than `v2`.
pub fn (v1 Version) < (v2 Version) bool {
return compare_lt(v1, v2)
}
Expand Down

0 comments on commit 5cc6664

Please sign in to comment.