Skip to content

Commit 2c1a630

Browse files
committed
spelling: separator
Signed-off-by: Josh Soref <[email protected]>
1 parent e23243a commit 2c1a630

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

manifest/parse.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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
2121
type 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) map[string]*Mappi
8484

8585
// Parse parses manifest strings into MappingResult
8686
func Parse(manifest string, defaultNamespace string, 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

Comments
 (0)