fix typos in service.go and plugin.go

Signed-off-by: song <tinysong1226@gmail.com>
Signed-off-by: Rongxiang Song <tinysong1226@gmail.com>
This commit is contained in:
song 2018-09-16 13:18:24 +08:00 committed by Rongxiang Song
parent 3735ea7b76
commit c80e20f93f
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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)