@@ -15,7 +15,7 @@ const (
1515 hookAnnotation = "helm.sh/hook"
1616)
1717
18- var yamlSeperator = []byte ("\n ---\n " )
18+ var yamlSeparator = []byte ("\n ---\n " )
1919
2020// MappingResult to store result of diff
2121type MappingResult struct {
@@ -48,9 +48,9 @@ func scanYamlSpecs(data []byte, atEOF bool) (advance int, token []byte, err erro
4848 if atEOF && len (data ) == 0 {
4949 return 0 , nil , nil
5050 }
51- if i := bytes .Index (data , yamlSeperator ); i >= 0 {
51+ if i := bytes .Index (data , yamlSeparator ); i >= 0 {
5252 // We have a full newline-terminated line.
53- return i + len (yamlSeperator ), data [0 :i ], nil
53+ return i + len (yamlSeparator ), data [0 :i ], nil
5454 }
5555 // If we're at EOF, we have a final, non-terminated line. Return it.
5656 if atEOF {
@@ -84,7 +84,7 @@ func ParseRelease(release *release.Release, includeTests bool, normalizeManifest
8484
8585// Parse parses manifest strings into MappingResult
8686func Parse (manifest string , defaultNamespace string , normalizeManifests bool , excludedHooks ... string ) map [string ]* MappingResult {
87- // Ensure we have a newline in front of the yaml seperator
87+ // Ensure we have a newline in front of the yaml separator
8888 scanner := bufio .NewScanner (strings .NewReader ("\n " + manifest ))
8989 scanner .Split (scanYamlSpecs )
9090 // Allow for tokens (specs) up to 10MiB in size
0 commit comments