浏览代码

Merge pull request #37741 from mooncak/fix_typos

fix typos in experimental.go and buildargs.go
Sebastiaan van Stijn 6 年之前
父节点
当前提交
3735ea7b76
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      api/server/router/experimental.go
  2. 1 1
      builder/dockerfile/buildargs.go

+ 1 - 1
api/server/router/experimental.go

@@ -44,7 +44,7 @@ func experimentalHandler(ctx context.Context, w http.ResponseWriter, r *http.Req
 	return notImplementedError{}
 	return notImplementedError{}
 }
 }
 
 
-// Handler returns returns the APIFunc to let the server wrap it in middlewares.
+// Handler returns the APIFunc to let the server wrap it in middlewares.
 func (r *experimentalRoute) Handler() httputils.APIFunc {
 func (r *experimentalRoute) Handler() httputils.APIFunc {
 	return r.handler
 	return r.handler
 }
 }

+ 1 - 1
builder/dockerfile/buildargs.go

@@ -113,7 +113,7 @@ func (b *BuildArgs) GetAllAllowed() map[string]string {
 	return b.getAllFromMapping(b.allowedBuildArgs)
 	return b.getAllFromMapping(b.allowedBuildArgs)
 }
 }
 
 
-// GetAllMeta returns a mapping with all the meta meta args
+// GetAllMeta returns a mapping with all the meta args
 func (b *BuildArgs) GetAllMeta() map[string]string {
 func (b *BuildArgs) GetAllMeta() map[string]string {
 	return b.getAllFromMapping(b.allowedMetaArgs)
 	return b.getAllFromMapping(b.allowedMetaArgs)
 }
 }