Explorar o código

Fix minor typo

Fix minor typo and make the comments of version-comparison functions
uniform.

Signed-off-by: Hu Keping <hukeping@huawei.com>
Hu Keping %!s(int64=10) %!d(string=hai) anos
pai
achega
96d8c3584c
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      pkg/version/version.go

+ 3 - 3
pkg/version/version.go

@@ -37,7 +37,7 @@ func (v Version) compareTo(other Version) int {
 	return 0
 	return 0
 }
 }
 
 
-// LessThan checks if a version is less than another version
+// LessThan checks if a version is less than another
 func (v Version) LessThan(other Version) bool {
 func (v Version) LessThan(other Version) bool {
 	return v.compareTo(other) == -1
 	return v.compareTo(other) == -1
 }
 }
@@ -47,12 +47,12 @@ func (v Version) LessThanOrEqualTo(other Version) bool {
 	return v.compareTo(other) <= 0
 	return v.compareTo(other) <= 0
 }
 }
 
 
-// GreaterThan checks if a version is greater than another one
+// GreaterThan checks if a version is greater than another
 func (v Version) GreaterThan(other Version) bool {
 func (v Version) GreaterThan(other Version) bool {
 	return v.compareTo(other) == 1
 	return v.compareTo(other) == 1
 }
 }
 
 
-// GreaterThanOrEqualTo checks ia version is greater than or equal to another
+// GreaterThanOrEqualTo checks if a version is greater than or equal to another
 func (v Version) GreaterThanOrEqualTo(other Version) bool {
 func (v Version) GreaterThanOrEqualTo(other Version) bool {
 	return v.compareTo(other) >= 0
 	return v.compareTo(other) >= 0
 }
 }