Update Tx.Commit documentation

Signed-off-by: Cenk Alti <cenkalti@gmail.com>
pull/499/head
Cenk Alti 2023-05-16 14:56:40 -04:00
parent 160cd29ec3
commit daff030646
No known key found for this signature in database
GPG Key ID: 30BB97EF64A82993
1 changed files with 1 additions and 1 deletions

2
tx.go
View File

@ -136,7 +136,7 @@ func (tx *Tx) OnCommit(fn func()) {
tx.commitHandlers = append(tx.commitHandlers, fn)
}
// Commit writes all changes to disk and updates the meta page.
// Commit writes all changes to disk, updates the meta page and closes the transaction.
// Returns an error if a disk write error occurs, or if Commit is
// called on a read-only transaction.
func (tx *Tx) Commit() error {