diff options
Diffstat (limited to 'modules.go')
-rw-r--r-- | modules.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules.go b/modules.go index b9e5b4e85..bd1f0e977 100644 --- a/modules.go +++ b/modules.go @@ -101,7 +101,7 @@ func (id ModuleID) Namespace() string { return string(id)[:lastDot] } -// Name returns the Name (last element) of a module name. +// Name returns the Name (last element) of a module ID. func (id ModuleID) Name() string { if id == "" { return "" @@ -294,8 +294,8 @@ type Provisioner interface { // Validator is implemented by modules which can verify that their // configurations are valid. This method will be called after // Provision() (if implemented). Validation should always be fast -// (imperceptible running time) and an error should be returned only -// if the value's configuration is invalid. +// (imperceptible running time) and an error must be returned if +// the module's configuration is invalid. type Validator interface { Validate() error } |