소스 검색

Merge pull request #37861 from TinySong/fix-typo

fix typos in service.go and plugin.go
Sebastiaan van Stijn 6 년 전
부모
커밋
d6a7c22f7b
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      daemon/cluster/convert/service.go
  2. 1 1
      internal/test/fixtures/plugin/plugin.go

+ 1 - 1
daemon/cluster/convert/service.go

@@ -208,7 +208,7 @@ func ServiceSpecToGRPC(s types.ServiceSpec) (swarmapi.ServiceSpec, error) {
 		}
 	case types.RuntimeNetworkAttachment:
 		// NOTE(dperny) I'm leaving this case here for completeness. The actual
-		// code is left out out deliberately, as we should refuse to parse a
+		// code is left out deliberately, as we should refuse to parse a
 		// Network Attachment runtime; it will cause weird behavior all over
 		// the system if we do. Instead, fallthrough and return
 		// ErrUnsupportedRuntime if we get one.

+ 1 - 1
internal/test/fixtures/plugin/plugin.go

@@ -17,7 +17,7 @@ import (
 	"github.com/pkg/errors"
 )
 
-// CreateOpt is is passed used to change the default plugin config before
+// CreateOpt is passed used to change the default plugin config before
 // creating it
 type CreateOpt func(*Config)