summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorOleksandr Redko <oleksandr.red+github@gmail.com>2023-02-18 22:47:35 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-03-02 16:32:32 +0100
commit36ce3a4a9d3933772085991c8636915ffd5cb3af (patch)
treee7eaf3e0ea689b227fe012eab7c0f16205d6cd8c /commands
parent17e60b77e15664ba37f5c0b911cf70c36d496d80 (diff)
Correct typos in Go comments
Diffstat (limited to 'commands')
-rw-r--r--commands/commands_test.go2
-rw-r--r--commands/server.go4
-rw-r--r--commands/server_test.go2
3 files changed, 4 insertions, 4 deletions
diff --git a/commands/commands_test.go b/commands/commands_test.go
index 03b59e19e..35621854f 100644
--- a/commands/commands_test.go
+++ b/commands/commands_test.go
@@ -229,7 +229,7 @@ func TestFlags(t *testing.T) {
if cmd.getCommand() == nil {
continue
}
- // We are only intereseted in the flag handling here.
+ // We are only interested in the flag handling here.
cmd.getCommand().RunE = noOpRunE
}
rootCmd := root.getCommand()
diff --git a/commands/server.go b/commands/server.go
index 4f7d4db8f..121a649d4 100644
--- a/commands/server.go
+++ b/commands/server.go
@@ -505,7 +505,7 @@ func removeErrorPrefixFromLog(content string) string {
}
var logReplacer = strings.NewReplacer(
- "can't", "can’t", // Chroma lexer does'nt do well with "can't"
+ "can't", "can’t", // Chroma lexer doesn't do well with "can't"
"*hugolib.pageState", "page.Page", // Page is the public interface.
"Rebuild failed:", "",
)
@@ -547,7 +547,7 @@ func (c *commandeer) serve(s *serverCmd) error {
roots = []string{""}
}
- // Cache it here. The HugoSites object may be unavaialble later on due to intermitent configuration errors.
+ // Cache it here. The HugoSites object may be unavailable later on due to intermittent configuration errors.
// To allow the en user to change the error template while the server is running, we use
// the freshest template we can provide.
var (
diff --git a/commands/server_test.go b/commands/server_test.go
index 2840cdf20..cf790c3fc 100644
--- a/commands/server_test.go
+++ b/commands/server_test.go
@@ -211,7 +211,7 @@ func TestServerBugs(t *testing.T) {
c.Assert(r.err, qt.IsNil)
c.Assert(r.homesContent[0], qt.Contains, "PostProcess: /foo.min.css")
}},
- // Isue 9901
+ // Issue 9901
{"Multihost", `
defaultContentLanguage = 'en'
[languages]