File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ The flags and their restrictions are:
51
51
|` -no-digit ` | do not replace variables starting with a digit, e.g. $1 and ${1} | ` flag ` | ` false `
52
52
|` -no-unset ` | fail if a variable is not set | ` flag ` | ` false `
53
53
|` -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 `
55
55
56
56
These flags can be combined to form tighter restrictions.
57
57
@@ -66,7 +66,7 @@ import (
66
66
)
67
67
68
68
func main () {
69
- input := " welcom $HOME"
69
+ input := " welcome $HOME"
70
70
str , err := envsubst.String (input)
71
71
// ...
72
72
buf , err := envsubst.Bytes ([]byte (input))
Original file line number Diff line number Diff line change @@ -11,11 +11,11 @@ type Mode int
11
11
12
12
// Mode for parser behaviour
13
13
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
15
15
AllErrors // report all errors
16
16
)
17
17
18
- // The restrictions option controls the parsring restriction.
18
+ // The restrictions option controls the parsing restriction.
19
19
type Restrictions struct {
20
20
NoUnset bool
21
21
NoEmpty bool
You can’t perform that action at this time.
0 commit comments