Skip to content

Commit 594e4b4

Browse files
authored
doc: fix typos (#52)
1 parent 9df41d1 commit 594e4b4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ The flags and their restrictions are:
5151
|`-no-digit` | do not replace variables starting with a digit, e.g. $1 and ${1} | `flag` | `false`
5252
|`-no-unset` | fail if a variable is not set | `flag` | `false`
5353
|`-no-empty` | fail if a variable is set but empty | `flag` | `false`
54-
|`-fail-fast` | fails at first occurence of an error, if `-no-empty` or `-no-unset` flags were **not** specified this is ignored | `flag` | `false`
54+
|`-fail-fast` | fails at first occurrence of an error, if `-no-empty` or `-no-unset` flags were **not** specified this is ignored | `flag` | `false`
5555

5656
These flags can be combined to form tighter restrictions.
5757

@@ -66,7 +66,7 @@ import (
6666
)
6767

6868
func main() {
69-
input := "welcom $HOME"
69+
input := "welcome $HOME"
7070
str, err := envsubst.String(input)
7171
// ...
7272
buf, err := envsubst.Bytes([]byte(input))

Diff for: parse/parse.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ type Mode int
1111

1212
// Mode for parser behaviour
1313
const (
14-
Quick Mode = iota // stop parsing after first error encoutered and return
14+
Quick Mode = iota // stop parsing after first error encountered and return
1515
AllErrors // report all errors
1616
)
1717

18-
// The restrictions option controls the parsring restriction.
18+
// The restrictions option controls the parsing restriction.
1919
type Restrictions struct {
2020
NoUnset bool
2121
NoEmpty bool

0 commit comments

Comments
 (0)