fix: correct comments for exported functions and variables (#1158)

This commit is contained in:
Zhizhen He
2023-02-25 20:48:38 +08:00
committed by GitHub
parent 57479b250a
commit 50a99e9120
5 changed files with 25 additions and 34 deletions

View File

@@ -34,7 +34,7 @@ func GetSchemaVersion(version string) string {
return minorVersion + ".0"
}
// IsVersionGreaterThanOrEqualTo returns true if version is greater than or equal to target.
// IsVersionGreaterOrEqualThan returns true if version is greater than or equal to target.
func IsVersionGreaterOrEqualThan(version, target string) bool {
return semver.Compare(fmt.Sprintf("v%s", version), fmt.Sprintf("v%s", target)) > -1
}