summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
author秦世成 <qeesung@live.com>2018-11-06 15:45:19 +0800
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-11-06 08:45:19 +0100
commit47506d164467eb7ddbcada81b767d8df5f9c8786 (patch)
tree01d12e79e94f57a90da2137eee471166f1f888d3 /commands
parent2998fa0cd5bad161b9c802d2409d8c9c81155011 (diff)
commands: Fix spelling
Diffstat (limited to 'commands')
-rw-r--r--commands/commands.go4
-rw-r--r--commands/commands_test.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/commands/commands.go b/commands/commands.go
index 751c263e0..1bbcf8038 100644
--- a/commands/commands.go
+++ b/commands/commands.go
@@ -80,14 +80,14 @@ var _ commandsBuilderGetter = (*baseBuilderCmd)(nil)
// Used in tests.
type commandsBuilderGetter interface {
- getCmmandsBuilder() *commandsBuilder
+ getCommandsBuilder() *commandsBuilder
}
type baseBuilderCmd struct {
*baseCmd
*commandsBuilder
}
-func (b *baseBuilderCmd) getCmmandsBuilder() *commandsBuilder {
+func (b *baseBuilderCmd) getCommandsBuilder() *commandsBuilder {
return b.commandsBuilder
}
diff --git a/commands/commands_test.go b/commands/commands_test.go
index 90b2f2c3d..84afe4419 100644
--- a/commands/commands_test.go
+++ b/commands/commands_test.go
@@ -76,7 +76,7 @@ func TestCommandsPersistentFlags(t *testing.T) {
var sc *serverCmd
for _, command := range commands {
if b, ok := command.(commandsBuilderGetter); ok {
- v := b.getCmmandsBuilder().hugoBuilderCommon
+ v := b.getCommandsBuilder().hugoBuilderCommon
assert.Equal("myconfig.toml", v.cfgFile)
assert.Equal("mysource", v.source)
assert.Equal("https://example.com/b/", v.baseURL)