Skip to content

Commit

Permalink
Fix spelling / test formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
schmichael committed Jun 2, 2017
1 parent 7953113 commit 7af148d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions envparse.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//
// KEY=value
//
// While extraneous characters are discouraged, an "export" prefix, preceeding
// While extraneous characters are discouraged, an "export" prefix, preceding
// whitespace, and trailing whitespace are all removed:
//
// KEY = This is ok! # Parses to {"KEY": "This is ok!"}
Expand Down Expand Up @@ -152,7 +152,7 @@ func parseLine(ln []byte) ([]byte, []byte, error) {
// Scratch buffer for unescaped value
newv := make([]byte, len(value))
newi := 0
// Track last significant character for trimming unquoted whitespace preceeding a trailing comment
// Track last significant character for trimming unquoted whitespace preceding a trailing comment
lastSig := 0

// Parser State
Expand Down
2 changes: 1 addition & 1 deletion envparse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ FIRST="overwrite # original" #...
`)
env, err := Parse(bytes.NewReader(buf))
if err != nil {
t.Fatalf("unexpected error: %v")
t.Fatalf("unexpected error: %v", err)
}
if len(env) != 3 {
t.Fatalf("expected 3 keys but found %d: %#v", len(env), env)
Expand Down

0 comments on commit 7af148d

Please sign in to comment.