database/sql: add doc comment for ErrTxDone

Change-Id: Idffb82cdcba4985954d061bdb021217f47ff4985
Reviewed-on: https://go-review.googlesource.com/29850
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Sam Whited 2016-09-26 20:23:36 -05:00 committed by Brad Fitzpatrick
parent 9ed0715bb6
commit 8f9e2ab557

View file

@ -1224,6 +1224,8 @@ type Tx struct {
}
}
// ErrTxDone is returned by any operation that is performed on a transaction
// that has already been committed or rolled back.
var ErrTxDone = errors.New("sql: Transaction has already been committed or rolled back")
func (tx *Tx) close(err error) {