From: 秦世成 Date: Tue, 6 Nov 2018 07:45:19 +0000 (+0800) Subject: commands: Fix spelling X-Git-Tag: v0.51~13 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=47506d164;p=brevno-suite%2Fhugo commands: Fix spelling --- diff --git a/commands/commands.go b/commands/commands.go index 751c263e..1bbcf803 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 90b2f2c3..84afe441 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)