Merge pull request #499 from cenkalti/tx-doc

Update Tx.Commit documentation
pull/504/head
Benjamin Wang 2023-05-17 11:11:08 +08:00 committed by GitHub
commit 53ce8c103d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 {