From 76385b253886a42b184c22052e0ae410f65568b7 Mon Sep 17 00:00:00 2001
From: guoguangwu <guoguangwu@magic-shield.com>
Date: Thu, 28 Sep 2023 10:16:27 +0800
Subject: [PATCH] fix: typo

Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
---
 envvars.go     | 2 +-
 utils/utils.go | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/envvars.go b/envvars.go
index bca11213..f91e9d61 100644
--- a/envvars.go
+++ b/envvars.go
@@ -124,7 +124,7 @@ const (
 
 	// EnvVarDisableFieldLen is the name of the environment variable used
 	// to determine whether or not to disable validation of CSI request and
-	// response field lengths against the permitted lenghts defined in the spec
+	// response field lengths against the permitted lengths defined in the spec
 	EnvVarDisableFieldLen = "X_CSI_SPEC_DISABLE_LEN_CHECK"
 
 	// EnvVarRequireStagingTargetPath is the name of the environment variable
diff --git a/utils/utils.go b/utils/utils.go
index cc885c6a..3992f0c1 100644
--- a/utils/utils.go
+++ b/utils/utils.go
@@ -227,7 +227,7 @@ func ParseMapWS(line string) map[string]string {
 			}
 		case '=':
 			// If the word buffer is currently the key buffer,
-			// quoting is not enabled, and the preceeding character
+			// quoting is not enabled, and the preceding character
 			// is not the escape character then the equal sign indicates
 			// a transition from key to value.
 			if word == keyb && quot == 0 && !escp {
@@ -237,7 +237,7 @@ func ParseMapWS(line string) map[string]string {
 				continue
 			}
 		case ' ', '\t':
-			// If quoting is not enabled and the preceeding character is
+			// If quoting is not enabled and the preceding character is
 			// not the escape character then record the value into the
 			// map and fast-forward the cursor to the next, non-whitespace
 			// character.