Skip to content

Commit 5e8e8fc

Browse files
committedOct 8, 2019
Typo fix
golint: comment on exported method KeyValue.Children should be of the form "Children ..." golint: comment on exported method KeyValue.AddChild should be of the form "AddChild ..."
1 parent d3023f9 commit 5e8e8fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎keyvalue.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func (node *KeyValue) HasChildren() bool {
6969
return node.Type() == ValueArray
7070
}
7171

72-
// GetChildren gets all node child values
72+
// Children gets all node child values
7373
// This is used for keys that contain 1 or more children as its value
7474
// rather than a basic type
7575
func (node *KeyValue) Children() (children []*KeyValue, err error) {
@@ -109,7 +109,7 @@ func (node *KeyValue) AsFloat() (float32, error) {
109109
return float32(val), err
110110
}
111111

112-
// Add adds a new KeyValue pair to an existing Key
112+
// AddChild adds a new KeyValue pair to an existing Key
113113
// Existing key's value must be an Array type
114114
func (node *KeyValue) AddChild(value *KeyValue) error {
115115
if !node.HasChildren() {

0 commit comments

Comments
 (0)