Skip to content

Commit 07a5e92

Browse files
committed
Fix typos and misspellings in comments, tests, and docs
Signed-off-by: Sahana Narasipura Vasudevarao <[email protected]>
1 parent b8b9a09 commit 07a5e92

20 files changed

Lines changed: 23 additions & 23 deletions

File tree

client/image_import.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func (cli *Client) ImageImport(ctx context.Context, source ImageImportSource, re
3939
query.Set("message", options.Message)
4040
}
4141
if p := formatPlatform(options.Platform); p != "unknown" {
42-
// TODO(thaJeztah): would we ever support mutiple platforms here? (would require multiple rootfs tars as well?)
42+
// TODO(thaJeztah): would we ever support multiple platforms here? (would require multiple rootfs tars as well?)
4343
query.Set("platform", p)
4444
}
4545
for _, change := range options.Changes {

client/service_logs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ type ServiceLogsResult interface {
3434
//
3535
// The underlying [io.ReadCloser] is automatically closed if the context is canceled,
3636
func (cli *Client) ServiceLogs(ctx context.Context, serviceID string, options ServiceLogsOptions) (ServiceLogsResult, error) {
37-
// TODO(thaJeztah): this function needs documentation about the format of ths stream (similar to for container logs)
37+
// TODO(thaJeztah): this function needs documentation about the format of the stream (similar to for container logs)
3838
// TODO(thaJeztah): migrate CLI utilities to the client where suitable; https://github.com/docker/cli/blob/v29.0.0-rc.1/cli/command/service/logs.go#L73-L348
3939

4040
serviceID, err := trimID("service", serviceID)

client/task_logs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ type TaskLogsResult interface {
3232
//
3333
// The underlying [io.ReadCloser] is automatically closed if the context is canceled,
3434
func (cli *Client) TaskLogs(ctx context.Context, taskID string, options TaskLogsOptions) (TaskLogsResult, error) {
35-
// TODO(thaJeztah): this function needs documentation about the format of ths stream (similar to for container logs)
35+
// TODO(thaJeztah): this function needs documentation about the format of the stream (similar to for container logs)
3636
// TODO(thaJeztah): migrate CLI utilities to the client where suitable; https://github.com/docker/cli/blob/v29.0.0-rc.1/cli/command/service/logs.go#L73-L348
3737

3838
query := url.Values{}

contrib/otel/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The `contrib/otel` directory contains the compose file with the services configu
1919
5. Browse Jaeger at `http://localhost:16686` or the Aspire Dashboard at `http://localhost:18888/traces`;
2020
6. To see some traces from the engine, select `dockerd` in the top left dropdown
2121

22-
> **Note**: The precise steps may vary based on how you're working on the codebase (buiding a binary and executing natively, running/debugging in a devcontainer, etc... )
22+
> **Note**: The precise steps may vary based on how you're working on the codebase (building a binary and executing natively, running/debugging in a devcontainer, etc... )
2323
2424
## Cleanup?
2525

daemon/cluster/controllers/plugin/controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func TestWaitCancel(t *testing.T) {
121121
t.Fatal(err)
122122
}
123123
case <-time.After(10 * time.Second):
124-
t.Fatal("timeout waiting for cancelation")
124+
t.Fatal("timeout waiting for cancellation")
125125
}
126126
}
127127

daemon/cluster/convert/network.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func ipamFromGRPC(i *swarmapi.IPAMOptions) *types.IPAMOptions {
8888
}
8989

9090
for _, config := range i.Configs {
91-
// Best-effort parse of user suppplied values that have
91+
// Best-effort parse of user supplied values that have
9292
// been round-tripped through Swarm's Raft store. It is
9393
// far too late to reject bogus values.
9494
subnet, _ := netiputil.ParseCIDR(config.Subnet)
@@ -162,7 +162,7 @@ func BasicNetworkFromGRPC(n swarmapi.Network) network.Network {
162162
}
163163
ipam.Config = make([]network.IPAMConfig, 0, len(n.IPAM.Configs))
164164
for _, ic := range n.IPAM.Configs {
165-
// Best-effort parse of user suppplied values that have
165+
// Best-effort parse of user supplied values that have
166166
// been round-tripped through Swarm's Raft store. It is
167167
// far too late to reject bogus values.
168168
subnet, _ := netiputil.ParseCIDR(ic.Subnet)

daemon/cluster/executor/container/executor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ func (e *executor) Configure(ctx context.Context, node *api.Node) error {
186186
// or has just had its IP changed (false)
187187
removeAttachments := make(map[string]bool)
188188

189-
// the first time we Configure, nodeObj wil be nil, because it will not be
189+
// the first time we Configure, nodeObj will be nil, because it will not be
190190
// set yet. in that case, skip this check.
191191
if e.nodeObj != nil {
192192
for _, na := range e.nodeObj.Attachments {

daemon/daemon.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ func (daemon *Daemon) restore(ctx context.Context, cfg *configStore, containers
268268
log.G(ctx).Info("Restoring containers: start.")
269269

270270
// parallelLimit is the maximum number of parallel startup jobs that we
271-
// allow (this is the limited used for all startup semaphores). The multipler
271+
// allow (this is the limited used for all startup semaphores). The multiplier
272272
// (128) was chosen after some fairly significant benchmarking -- don't change
273273
// it unless you've tested it significantly (this value is adjusted if
274274
// RLIMIT_NOFILE is small to avoid EMFILE).

daemon/images/image.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ func (i *ImageService) manifestMatchesPlatform(ctx context.Context, img *image.I
141141
}
142142

143143
if err := json.Unmarshal(data, &m); err != nil {
144-
logger.WithError(err).Error("Error desserializing manifest")
144+
logger.WithError(err).Error("Error deserializing manifest")
145145
continue
146146
}
147147

daemon/kill.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ func (daemon *Daemon) Kill(container *containerpkg.Container) error {
193193
return err
194194
}
195195

196-
// wait for container to exit one last time, if it doesn't then kill didnt work, so return error
196+
// wait for container to exit one last time, if it doesn't then kill didn't work, so return error
197197
ctx2, cancel2 := context.WithTimeout(context.Background(), 2*time.Second)
198198
defer cancel2()
199199

0 commit comments

Comments
 (0)