aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergio Arbeo <serabe@gmail.com>2017-01-30 13:15:47 +0100
committerMáximo Cuadros <mcuadros@gmail.com>2017-01-30 13:15:47 +0100
commitbb36105c3d9f3d92306450f7679cd99fb20d4e40 (patch)
tree46990fa018174a1faf7531dca72d560d9e24d129
parentaa249bc28c6f6c4f5cb6fea2d71ea593f10431b0 (diff)
downloadgo-git-bb36105c3d9f3d92306450f7679cd99fb20d4e40.tar.gz
Fix typos in config pkg (#233)
-rw-r--r--config/config.go4
-rw-r--r--config/modules.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/config/config.go b/config/config.go
index fc6d84c..bf0cea2 100644
--- a/config/config.go
+++ b/config/config.go
@@ -55,7 +55,7 @@ func NewConfig() *Config {
}
}
-// Validate validate the fields and set the default values
+// Validate validates the fields and sets the default values
func (c *Config) Validate() error {
for name, r := range c.Remotes {
if r.Name != name {
@@ -153,7 +153,7 @@ type RemoteConfig struct {
raw *format.Subsection
}
-// Validate validate the fields and set the default values
+// Validate validates the fields and sets the default values
func (c *RemoteConfig) Validate() error {
if c.Name == "" {
return ErrRemoteConfigEmptyName
diff --git a/config/modules.go b/config/modules.go
index 8b3d2b8..b1f35b8 100644
--- a/config/modules.go
+++ b/config/modules.go
@@ -93,7 +93,7 @@ type Submodule struct {
raw *format.Subsection
}
-// Validate validate the fields and set the default values
+// Validate validates the fields and sets the default values
func (m *Submodule) Validate() error {
if m.Path == "" {
return ErrModuleEmptyPath