diff --git a/hclwrite/ast.go b/hclwrite/ast.go index 35c746b..19d0070 100644 --- a/hclwrite/ast.go +++ b/hclwrite/ast.go @@ -82,7 +82,7 @@ func (n *Body) AppendUnstructuredTokens(seq *TokenSeq) { // given name, or returns nil if there is currently no matching attribute. // // A valid AST has only one definition of each attribute, but that constraint -// is not enforced in the zclwrite AST, so a tree that has been mutated by +// is not enforced in the hclwrite AST, so a tree that has been mutated by // other calls may contain additional matching attributes that cannot be seen // by this method. func (n *Body) FindAttribute(name string) *Attribute { diff --git a/hclwrite/format.go b/hclwrite/format.go index 1ccc78f..64f161d 100644 --- a/hclwrite/format.go +++ b/hclwrite/format.go @@ -49,7 +49,7 @@ func formatIndent(lines []formatLine) { // We'll start our indent stack at a reasonable capacity to minimize the // chance of us needing to grow it; 10 here means 10 levels of indent, - // which should be more than enough for reasonable zcl uses. + // which should be more than enough for reasonable HCL uses. indents := make([]int, 0, 10) for i := range lines { diff --git a/hclwrite/public.go b/hclwrite/public.go index ee2d920..d9b0dd5 100644 --- a/hclwrite/public.go +++ b/hclwrite/public.go @@ -6,7 +6,7 @@ import ( "github.com/hashicorp/hcl2/hcl" ) -// ParseConfig interprets the given source bytes into a *zclwrite.File. The +// ParseConfig interprets the given source bytes into a *hclwrite.File. The // resulting AST can be used to perform surgical edits on the source code // before turning it back into bytes again. func ParseConfig(src []byte, filename string, start hcl.Pos) (*File, hcl.Diagnostics) { diff --git a/hclwrite/tokens.go b/hclwrite/tokens.go index 4eafbdf..8fb87f2 100644 --- a/hclwrite/tokens.go +++ b/hclwrite/tokens.go @@ -9,7 +9,7 @@ import ( ) // TokenGen is an abstract type that can append tokens to a list. It is the -// low-level foundation underlying the zclwrite AST; the AST provides a +// low-level foundation underlying the hclwrite AST; the AST provides a // convenient abstraction over raw token sequences to facilitate common tasks, // but it's also possible to directly manipulate the tree of token generators // to make changes that the AST API doesn't directly allow.