Skip to content

Commit 74b49ee

Browse files
authored
Merge pull request moby#1832 from allencloud/fix-nits-in-someplace
fix nits in func comments
2 parents f245c9b + 022075d commit 74b49ee

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

ca/certificates.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const (
6969
MinNodeCertExpiration = 1 * time.Hour
7070
)
7171

72-
// A recoverableErr is an non-fatal error encountered signing a certificate,
72+
// A recoverableErr is a non-fatal error encountered signing a certificate,
7373
// which means that the certificate issuance may be retried at a later time.
7474
type recoverableErr struct {
7575
err error

log/context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func GetLogger(ctx context.Context) *logrus.Entry {
4242
}
4343

4444
// WithModule adds the module to the context, appending it with a slash if a
45-
// module already exists. A module is just an roughly correlated defined by the
45+
// module already exists. A module is just a roughly correlated defined by the
4646
// call tree for a given context.
4747
//
4848
// As an example, we might have a "node" module already part of a context. If

manager/allocator/networkallocator/portallocator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func newPortSpace(protocol api.PortConfig_Protocol) (*portSpace, error) {
7373
}, nil
7474
}
7575

76-
// getPortConfigkey returns a map key for doing set operations with
76+
// getPortConfigKey returns a map key for doing set operations with
7777
// ports. The key consists of name, protocol and target port which
7878
// uniquely identifies a port within a single Endpoint.
7979
func getPortConfigKey(p *api.PortConfig) api.PortConfig {

manager/manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const (
4545
defaultTaskHistoryRetentionLimit = 5
4646
)
4747

48-
// RemoteAddrs provides an listening address and an optional advertise address
48+
// RemoteAddrs provides a listening address and an optional advertise address
4949
// for serving the remote API.
5050
type RemoteAddrs struct {
5151
// Address to bind

manager/orchestrator/replicated/services.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ func (r *Orchestrator) reconcile(ctx context.Context, service *api.Service) {
181181
func (r *Orchestrator) addTasks(ctx context.Context, batch *store.Batch, service *api.Service, runningSlots map[uint64]orchestrator.Slot, deadSlots map[uint64]orchestrator.Slot, count int) {
182182
slot := uint64(0)
183183
for i := 0; i < count; i++ {
184-
// Find an slot number that is missing a running task
184+
// Find a slot number that is missing a running task
185185
for {
186186
slot++
187187
if _, ok := runningSlots[slot]; !ok {

0 commit comments

Comments
 (0)