Skip to content

Commit ba82a32

Browse files
committed
grammar improvements - missing articles, punctuation
Add missing comma and articles to improve comments.
1 parent fe2a6bc commit ba82a32

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/workflows/generate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
jobs:
1313
go-generate:
1414
permissions:
15-
# Allow job to write to the branch.
15+
# Allow the job to write to the branch.
1616
contents: write
1717
runs-on: ubuntu-latest
1818
steps:

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ linters-settings:
3939

4040
issues:
4141
include:
42-
# If you're going to write a comment follow the conventions.
42+
# If you're going to write a comment, follow the conventions.
4343
# https://go.dev/doc/effective_go#commentary.
4444
# comment on exported (.+) should be of the form "(.+)..."
4545
- EXC0014

internal/generator/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ func main() {
6161
b := codegen.New(model)
6262

6363
err = b.BuildCode(o, func(name, inherits spec.TypeName) bool {
64-
// This is what selects the types to include in generated file.
64+
// This is what selects the types to include in the generated file.
65+
6566
// Any dependencies of these types will be included automatically.
6667
return name.Namespace == "ingest._types" && name.Name == "Pipeline" || inherits.Name == "ProcessorBase"
6768
})

0 commit comments

Comments
 (0)