Skip to content

Commit 4ffc8dc

Browse files
committed
minor formatting fixes
indentation and var grouping auto fixes by gofumpt
1 parent cbf92f8 commit 4ffc8dc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

bindings.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,10 @@ type Input struct {
8080
Encoding InputEncoding
8181
}
8282

83-
var ErrOperationLimit = errors.New("operation limit was hit")
84-
var ErrNoLanguage = errors.New("cannot parse without language")
83+
var (
84+
ErrOperationLimit = errors.New("operation limit was hit")
85+
ErrNoLanguage = errors.New("cannot parse without language")
86+
)
8587

8688
// Parse produces new Tree from content using old tree
8789
//
@@ -529,7 +531,7 @@ func (n Node) ChildByFieldName(name string) *Node {
529531

530532
// FieldNameForChild returns the field name of the child at the given index, or "" if not named.
531533
func (n Node) FieldNameForChild(idx int) string {
532-
return C.GoString(C.ts_node_field_name_for_child(n.c, C.uint32_t(idx)))
534+
return C.GoString(C.ts_node_field_name_for_child(n.c, C.uint32_t(idx)))
533535
}
534536

535537
// NextSibling returns the node's next sibling.

0 commit comments

Comments
 (0)