Minor documentation cleanup from last commit

This commit is contained in:
Kenneth Shaw 2017-12-18 10:48:40 +07:00
parent 07208b1cc3
commit 380c95b6c0
2 changed files with 7 additions and 6 deletions

View File

@ -209,9 +209,10 @@ func Attributes(sel interface{}, attributes *map[string]string, opts ...QueryOpt
}, opts...)
}
// AttributesAll retrieves the element attributes for every nodes matching the
// AttributesAll retrieves the element attributes for all nodes matching the
// selector.
// selector should be ByQueryAll
//
// Note: this should be used with the ByQueryAll selector option.
func AttributesAll(sel interface{}, attributes *[]map[string]string, opts ...QueryOption) Action {
if attributes == nil {
panic("attributes cannot be nil")