Skip to content

Commit 2a944bc

Browse files
committed
fix typos
Signed-off-by: allencloud <[email protected]>
1 parent 1980f48 commit 2a944bc

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ use for simple changes](https://docs.docker.com/opensource/workflow/make-a-contr
106106
<td>
107107
The <a href="https://groups.google.com/forum/#!forum/docker-dev" target="_blank">docker-dev</a>
108108
group is for contributors and other people contributing to the Docker project.
109-
You can join them without an google account by sending an email to
109+
You can join them without a google account by sending an email to
110110
<a href="mailto:[email protected]">[email protected]</a>.
111111
After receiving the join-request message, you can simply reply to that to confirm the subscribtion.
112112
</td>

cmd/swarmctl/service/flagparser/port.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func parsePortConfig(portConfig string) (string, api.PortConfig_Protocol, uint32
4444
protocol := api.ProtocolTCP
4545
parts := strings.Split(portConfig, ":")
4646
if len(parts) < 2 {
47-
return "", protocol, 0, 0, fmt.Errorf("insuffient parameters in port configuration")
47+
return "", protocol, 0, 0, fmt.Errorf("insufficient parameters in port configuration")
4848
}
4949

5050
name := parts[0]

manager/controlapi/network.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func validateNetworkSpec(spec *api.NetworkSpec) error {
8686
return nil
8787
}
8888

89-
// CreateNetwork creates and return a Network based on the provided NetworkSpec.
89+
// CreateNetwork creates and returns a Network based on the provided NetworkSpec.
9090
// - Returns `InvalidArgument` if the NetworkSpec is malformed.
9191
// - Returns an error if the creation fails.
9292
func (s *Server) CreateNetwork(ctx context.Context, request *api.CreateNetworkRequest) (*api.CreateNetworkResponse, error) {

manager/orchestrator/replicated.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"golang.org/x/net/context"
1313
)
1414

15-
// An ReplicatedOrchestrator runs a reconciliation loop to create and destroy
15+
// A ReplicatedOrchestrator runs a reconciliation loop to create and destroy
1616
// tasks as necessary for the replicated services.
1717
type ReplicatedOrchestrator struct {
1818
store *store.MemoryStore

manager/state/store/memory.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ type MemoryStore struct {
8484
proposer state.Proposer
8585
}
8686

87-
// NewMemoryStore returns an in-memory store. The argument is a optional
87+
// NewMemoryStore returns an in-memory store. The argument is an optional
8888
// Proposer which will be used to propagate changes to other members in a
8989
// cluster.
9090
func NewMemoryStore(proposer state.Proposer) *MemoryStore {

0 commit comments

Comments
 (0)