From 9ce459fe6b2820dac424807a425af2e5ca596664 Mon Sep 17 00:00:00 2001 From: deoxxa Date: Thu, 28 Apr 2016 22:44:27 +1000 Subject: [PATCH] amend docs on Keys/KeysByParent --- otto.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/otto.go b/otto.go index 99df01b..ed9e112 100644 --- a/otto.go +++ b/otto.go @@ -643,9 +643,9 @@ func (self Object) Set(name string, value interface{}) error { } } -// Get the keys for the object +// Keys gets the keys for the given object. // -// Equivalent to calling Object.keys on the object +// Equivalent to calling Object.keys on the object. func (self Object) Keys() []string { var keys []string self.object.enumerate(false, func(name string) bool { @@ -655,8 +655,8 @@ func (self Object) Keys() []string { return keys } -// Get the keys (and those of the parents) for the object, in order of -// "closest" to "furthest" +// KeysByParent gets the keys (and those of the parents) for the given object, +// in order of "closest" to "furthest". func (self Object) KeysByParent() [][]string { var a [][]string