Skip to content

Commit

Permalink
fix: typos in comments (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
deining authored Mar 28, 2024
1 parent e6c7b05 commit 38dfe1a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"sort"
)

// A Config describes application cofig.
// A Config describes application config.
type Config struct {
PoolSize int `json:"pool_size"`
Verbose bool `json:"verbose"`
Expand Down
2 changes: 1 addition & 1 deletion internal/engine/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func (e *Docker) exec(box *config.Box, step *config.Step, req Request, dir strin

if err.Error() == "signal: killed" {
if step.Action == actionRun {
// we have to "docker kill" the container here, because the proccess
// we have to "docker kill" the container here, because the process
// inside the container is not related to the "docker run" process,
// and will hang forever after the "docker run" process is killed
go func() {
Expand Down
2 changes: 1 addition & 1 deletion internal/engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (err ExecutionError) Unwrap() error {
}

// An ArgumentError is returned if code execution failed
// due to the invalid value of the request agrument.
// due to the invalid value of the request argument.
type ArgumentError struct {
name string
reason error
Expand Down
2 changes: 1 addition & 1 deletion internal/logx/memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (m *Memory) MustNotHave(t *testing.T, message ...string) {
}
}

// Clear cleares the memory.
// Clear clears the memory.
func (m *Memory) Clear() {
m.Lines = []string{}
}
Expand Down
2 changes: 1 addition & 1 deletion internal/sandbox/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var engineConstr = map[string]func(*config.Config, string, string) engine.Engine
}

// engines is the registry of command executors.
// Each engine executes a specific command in a specifix sandbox.
// Each engine executes a specific command in a specific sandbox.
// sandbox : command : engine
// TODO: Maybe it's better to create a single instance of each engine
// and pass the sandbox and command as arguments to the Exec.
Expand Down

0 comments on commit 38dfe1a

Please sign in to comment.