mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
database/sql: fix typo in comment
Change-Id: Ie2966bae1dc2e542c42fb32d8059a4b2d4690014 Reviewed-on: https://go-review.googlesource.com/99115 Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
93b0261d0a
commit
0657235660
1 changed files with 1 additions and 1 deletions
|
|
@ -1940,7 +1940,7 @@ func (tx *Tx) closePrepared() {
|
|||
// Commit commits the transaction.
|
||||
func (tx *Tx) Commit() error {
|
||||
// Check context first to avoid transaction leak.
|
||||
// If put it behind tx.done CompareAndSwap statement, we cant't ensure
|
||||
// If put it behind tx.done CompareAndSwap statement, we can't ensure
|
||||
// the consistency between tx.done and the real COMMIT operation.
|
||||
select {
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue