hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 47506d164467eb7ddbcada81b767d8df5f9c8786
parent 2998fa0cd5bad161b9c802d2409d8c9c81155011
Author: 秦世成 <qeesung@live.com>
Date:   Tue,  6 Nov 2018 15:45:19 +0800

commands: Fix spelling


Diffstat:
Mcommands/commands.go | 4++--
Mcommands/commands_test.go | 2+-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git 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
@@ -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)