From 38dfe1a3802b8c69b79bca3482584f78b9f50c79 Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Thu, 28 Mar 2024 05:10:03 +0100 Subject: [PATCH] fix: typos in comments (#10) --- internal/config/config.go | 2 +- internal/engine/docker.go | 2 +- internal/engine/engine.go | 2 +- internal/logx/memory.go | 2 +- internal/sandbox/config.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/config/config.go b/internal/config/config.go index 20a6594..6dad01d 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -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"` diff --git a/internal/engine/docker.go b/internal/engine/docker.go index b8fbcfe..80f94ed 100644 --- a/internal/engine/docker.go +++ b/internal/engine/docker.go @@ -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() { diff --git a/internal/engine/engine.go b/internal/engine/engine.go index 15d05d2..c4c410f 100644 --- a/internal/engine/engine.go +++ b/internal/engine/engine.go @@ -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 diff --git a/internal/logx/memory.go b/internal/logx/memory.go index 96d337c..ef4c9d8 100644 --- a/internal/logx/memory.go +++ b/internal/logx/memory.go @@ -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{} } diff --git a/internal/sandbox/config.go b/internal/sandbox/config.go index 177ca6f..a4ff409 100644 --- a/internal/sandbox/config.go +++ b/internal/sandbox/config.go @@ -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.