go lint/vet fixes

This commit is contained in:
Josh Baker 2016-10-06 11:31:40 -07:00
parent be5b9f115e
commit 68706df6a5
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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 {