shithub: hugo

Download patch

ref: 47506d164467eb7ddbcada81b767d8df5f9c8786
parent: 2998fa0cd5bad161b9c802d2409d8c9c81155011
author: 秦世成 <[email protected]>
date: Tue Nov 6 10:45:19 EST 2018

commands: Fix spelling


--- a/commands/commands.go
+++ b/commands/commands.go
@@ -80,7 +80,7 @@
 
 // Used in tests.
 type commandsBuilderGetter interface {
-	getCmmandsBuilder() *commandsBuilder
+	getCommandsBuilder() *commandsBuilder
 }
 type baseBuilderCmd struct {
 	*baseCmd
@@ -87,7 +87,7 @@
 	*commandsBuilder
 }
 
-func (b *baseBuilderCmd) getCmmandsBuilder() *commandsBuilder {
+func (b *baseBuilderCmd) getCommandsBuilder() *commandsBuilder {
 	return b.commandsBuilder
 }
 
--- a/commands/commands_test.go
+++ b/commands/commands_test.go
@@ -76,7 +76,7 @@
 		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)