Skip to content

Commit

Permalink
hclwrite: update remaining stale references to "zcl"
Browse files Browse the repository at this point in the history
  • Loading branch information
apparentlymart committed Jan 27, 2018
1 parent fc40403 commit f70b6b0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion hclwrite/ast.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion hclwrite/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion hclwrite/public.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion hclwrite/tokens.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f70b6b0

Please sign in to comment.