浏览代码

Correct comment typo in build.go (#8234)

Greg 3 年之前
父节点
当前提交
bca6d31b95
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      build.go

+ 1 - 1
build.go

@@ -985,7 +985,7 @@ func getGitVersion() (string, error) {
 	v0 := string(bs)
 
 	// To be more semantic-versionish and ensure proper ordering in our
-	// upgrade process, we make sure there's only one hypen in the version.
+	// upgrade process, we make sure there's only one hyphen in the version.
 
 	versionRe := regexp.MustCompile(`-([0-9]{1,3}-g[0-9a-f]{5,10}(-dirty)?)`)
 	if m := versionRe.FindStringSubmatch(vcur); len(m) > 0 {