diff --git a/src/arch/arch.go b/src/arch/arch.go index f93bc21..f971f7e 100644 --- a/src/arch/arch.go +++ b/src/arch/arch.go @@ -16,7 +16,7 @@ func SearchBytesInFile( path string, match string, limit int) bool { return false; } - // Opening the file and checking if there is an arror + // Opening the file and checking if there is an error file, err := os.Open(path) if err != nil { return false; diff --git a/src/semver/semver.go b/src/semver/semver.go index a726a7c..b73ec66 100644 --- a/src/semver/semver.go +++ b/src/semver/semver.go @@ -32,7 +32,7 @@ type Version struct { Minor uint64 Patch uint64 Pre []*PRVersion - Build []string //No Precendence + Build []string //No Precedence } // Version to string @@ -126,7 +126,7 @@ func (v *Version) Compare(o *Version) int { } } - // If all pr versions are the equal but one has further prversion, this one greater + // If all pr versions are the equal but one has further pr version, this one greater if i == len(v.Pre) && i == len(o.Pre) { return 0 } else if i == len(v.Pre) && i < len(o.Pre) { @@ -222,7 +222,7 @@ func Parse(s string) (*Version, error) { } else if preIndex == -1 && buildIndex == -1 { subVersionIndex = len(parts[2]) } else { - // if there is no actual prversion but a hyphen inside the build meta data + // if there is no actual pr version but a hyphen inside the build meta data if buildIndex < preIndex { subVersionIndex = buildIndex preIndex = -1 // Build meta data before preIndex found implicates there are no prerelease versions