diff --git a/nomad/structs/node_pool.go b/nomad/structs/node_pool.go index babc3e1ed..4c17807d4 100644 --- a/nomad/structs/node_pool.go +++ b/nomad/structs/node_pool.go @@ -35,7 +35,7 @@ var ( validNodePoolName = regexp.MustCompile("^[a-zA-Z0-9-_]{1,128}$") ) -// ValidadeNodePoolName returns an error if a node pool name is invalid. +// ValidateNodePoolName returns an error if a node pool name is invalid. func ValidateNodePoolName(pool string) error { if !validNodePoolName.MatchString(pool) { return fmt.Errorf("invalid name %q, must match regex %s", pool, validNodePoolName)