Skip to content

Commit 1e9d476

Browse files
📖 small fixes to extending_cli_features_and_plugins.md
1 parent 558f151 commit 1e9d476

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/book/src/plugins/extending/extending_cli_features_and_plugins.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,10 @@ This library allows you to:
120120
- Add [markers][markers-scaffold] to the scaffolded files.
121121
- Specify templates for your scaffolds.
122122

123-
#### Example: Bollerplate
123+
#### Example: Boilerplate
124124

125-
For instance, the go/v4 scaffolds the `cmd/go.mod` file by defining an object that [implements the machinery interface][machinery].
126-
The `Template.SetTemplateDefaults`, the `raw template is set to the body:
125+
For instance, the go/v4 scaffolds the `go.mod` file by defining an object that [implements the machinery interface][machinery].
126+
The raw template is set to the `TemplateBody` field on the `Template.SetTemplateDefaults` method:
127127

128128
```go
129129
{{#include ./../../../../../pkg/plugins/golang/v4/scaffolds/internal/templates/gomod.go}}

0 commit comments

Comments
 (0)