From 2a91bf446903de0b1be56609420547f1a3e198cd Mon Sep 17 00:00:00 2001 From: James Rasell Date: Mon, 24 Jul 2023 08:28:05 +0100 Subject: [PATCH] node-pool: fix validate name function comment typo. (#17927) --- nomad/structs/node_pool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)