Skip to content

Commit 2eb49c4

Browse files
committed
[DATALAD RUNCMD] run codespell throughout fixing few left typos automagically
=== Do not change lines below === { "chain": [], "cmd": "codespell -w", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^
1 parent 362cdaa commit 2eb49c4

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

caddyconfig/caddyfile/lexer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ func (l *lexer) next() (bool, error) {
155155
// want to keep.
156156
if ch == '\n' {
157157
if len(val) == 2 {
158-
return false, fmt.Errorf("missing opening heredoc marker on line #%d; must contain only alpha-numeric characters, dashes and underscores; got empty string", l.line)
158+
return false, fmt.Errorf("missing opening heredoc marker on line #%d; must contain only alphanumeric characters, dashes and underscores; got empty string", l.line)
159159
}
160160

161161
// check if there's too many <
@@ -165,7 +165,7 @@ func (l *lexer) next() (bool, error) {
165165

166166
heredocMarker = string(val[2:])
167167
if !heredocMarkerRegexp.Match([]byte(heredocMarker)) {
168-
return false, fmt.Errorf("heredoc marker on line #%d must contain only alpha-numeric characters, dashes and underscores; got '%s'", l.line, heredocMarker)
168+
return false, fmt.Errorf("heredoc marker on line #%d must contain only alphanumeric characters, dashes and underscores; got '%s'", l.line, heredocMarker)
169169
}
170170

171171
inHeredoc = true

caddyconfig/caddyfile/lexer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ EOF
424424
{
425425
input: []byte("not-a-heredoc <<\n"),
426426
expectErr: true,
427-
errorMessage: "missing opening heredoc marker on line #1; must contain only alpha-numeric characters, dashes and underscores; got empty string",
427+
errorMessage: "missing opening heredoc marker on line #1; must contain only alphanumeric characters, dashes and underscores; got empty string",
428428
},
429429
{
430430
input: []byte(`heredoc <<<EOF

caddyconfig/httpcaddyfile/tlsapp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func (st ServerType) buildTLSApp(
9292
tlsApp.Automation.Policies = append(tlsApp.Automation.Policies, catchAllAP)
9393
}
9494

95-
// collect all hosts that have a wildcard in them, and arent HTTP
95+
// collect all hosts that have a wildcard in them, and aren't HTTP
9696
wildcardHosts := []string{}
9797
// hosts that have been explicitly marked to be automated,
9898
// even if covered by another wildcard

modules/caddyhttp/reverseproxy/healthchecks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ func (h *Handler) doActiveHealthCheck(dialInfo DialInfo, hostAddr string, networ
510510
body = io.LimitReader(body, h.HealthChecks.Active.MaxSize)
511511
}
512512
defer func() {
513-
// drain any remaining body so connection could be re-used
513+
// drain any remaining body so connection could be reused
514514
_, _ = io.Copy(io.Discard, body)
515515
resp.Body.Close()
516516
}()

modules/caddyhttp/reverseproxy/streaming.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ func (h *Handler) handleUpgradeResponse(logger *zap.Logger, wg *sync.WaitGroup,
146146
// adopted from https://github.com/golang/go/commit/8bcf2834afdf6a1f7937390903a41518715ef6f5
147147
backConnCloseCh := make(chan struct{})
148148
go func() {
149-
// Ensure that the cancelation of a request closes the backend.
149+
// Ensure that the cancellation of a request closes the backend.
150150
// See issue https://golang.org/issue/35559.
151151
select {
152152
case <-req.Context().Done():

0 commit comments

Comments
 (0)