This commit is contained in:
sunxiaojun2014 2018-04-24 10:06:28 +00:00 committed by GitHub
commit fef5fab33b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -73,7 +73,7 @@ type NodeIterator interface {
// For leaf nodes, the last element of the path is the 'terminator symbol' 0x10. // For leaf nodes, the last element of the path is the 'terminator symbol' 0x10.
Path() []byte Path() []byte
// Leaf returns true iff the current node is a leaf node. // Leaf returns true if the current node is a leaf node.
// LeafBlob, LeafKey return the contents and key of the leaf node. These // LeafBlob, LeafKey return the contents and key of the leaf node. These
// method panic if the iterator is not positioned at a leaf. // method panic if the iterator is not positioned at a leaf.
// Callers must not retain references to their return value after calling Next // Callers must not retain references to their return value after calling Next