mirror of https://github.com/tidwall/buntdb.git
go lint/vet fixes
This commit is contained in:
parent
be5b9f115e
commit
68706df6a5
|
@ -980,7 +980,7 @@ type txWriteContext struct {
|
|||
rollbackIndexes map[string]*index // details for dropped indexes.
|
||||
}
|
||||
|
||||
// ClearAll deletes all items from the database.
|
||||
// DeleteAll deletes all items from the database.
|
||||
func (tx *Tx) DeleteAll() error {
|
||||
if tx.db == nil {
|
||||
return ErrTxClosed
|
||||
|
|
|
@ -823,7 +823,7 @@ func TestVariousTx(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func ExampleDescKeys() {
|
||||
func Example_descKeys() {
|
||||
db, _ := Open(":memory:")
|
||||
db.CreateIndex("name", "*", IndexString)
|
||||
db.Update(func(tx *Tx) error {
|
||||
|
|
Loading…
Reference in New Issue