Skip to content

Commit 0878c59

Browse files
xiaolinnyndeloof
authored andcommitted
chore: fix grammatical errors and improve clarity in code
Signed-off-by: xiaolinny <[email protected]>
1 parent c0345e4 commit 0878c59

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cmd/compose/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ func runCommand(p *ProjectOptions, dockerCli command.Cli, backendOptions *Backen
185185
}
186186
} else if !cmd.Flags().Changed("no-TTY") && !cmd.Flags().Changed("interactive") && !dockerCli.In().IsTerminal() {
187187
// while `docker run` requires explicit `-it` flags, Compose enables interactive mode and TTY by default
188-
// but when compose is used from a scripr has stdin piped from another command, we just can't
188+
// but when compose is used from a script that has stdin piped from another command, we just can't
189189
// Here, we detect we run "by default" (user didn't passed explicit flags) and disable TTY allocation if
190190
// we don't have an actual terminal to attach to for interactive mode
191191
options.noTty = true

pkg/compose/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func (s *composeService) RunOneOffContainer(ctx context.Context, project *types.
3838
return 0, err
3939
}
4040

41-
// remove cancellable context signal handler so we can forward signals to container without compose to exit
41+
// remove cancellable context signal handler so we can forward signals to container without compose from exiting
4242
signal.Reset()
4343

4444
sigc := make(chan os.Signal, 128)

pkg/dryrun/dryrunclient.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ func (d *DryRunClient) ContainerExecStart(ctx context.Context, execID string, co
313313
return nil
314314
}
315315

316-
// Functions delegated to original APIClient (not used by Compose or not modifying the Compose stack
316+
// Functions delegated to original APIClient (not used by Compose or not modifying the Compose stack)
317317

318318
func (d *DryRunClient) ConfigList(ctx context.Context, options swarm.ConfigListOptions) ([]swarm.Config, error) {
319319
return d.apiClient.ConfigList(ctx, options)

0 commit comments

Comments
 (0)