mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
swarm/shed: fix comments
This commit is contained in:
parent
5d58a76bec
commit
08a45ee460
1 changed files with 2 additions and 2 deletions
|
|
@ -265,7 +265,7 @@ func (f Index) Iterate(fn IndexIterFunc, options *IterateOptions) (err error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// First returns the first item in the Index which encoded key starts with a prefix.
|
// First returns the first item in the Index which encoded key starts with a prefix.
|
||||||
// If the prefix is nil, the Last element of the whole index is returned.
|
// If the prefix is nil, the first element of the whole index is returned.
|
||||||
// If Index has no elements, a leveldb.ErrNotFound error is returned.
|
// If Index has no elements, a leveldb.ErrNotFound error is returned.
|
||||||
func (f Index) First(prefix []byte) (i Item, err error) {
|
func (f Index) First(prefix []byte) (i Item, err error) {
|
||||||
it := f.db.NewIterator()
|
it := f.db.NewIterator()
|
||||||
|
|
@ -300,7 +300,7 @@ func (f Index) itemFromIterator(it iterator.Iterator, totalPrefix []byte) (i Ite
|
||||||
}
|
}
|
||||||
|
|
||||||
// Last returns the last item in the Index which encoded key starts with a prefix.
|
// Last returns the last item in the Index which encoded key starts with a prefix.
|
||||||
// If the prefix is nil, the Last element of the whole index is returned.
|
// If the prefix is nil, the last element of the whole index is returned.
|
||||||
// If Index has no elements, a leveldb.ErrNotFound error is returned.
|
// If Index has no elements, a leveldb.ErrNotFound error is returned.
|
||||||
func (f Index) Last(prefix []byte) (i Item, err error) {
|
func (f Index) Last(prefix []byte) (i Item, err error) {
|
||||||
it := f.db.NewIterator()
|
it := f.db.NewIterator()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue