]> Cypherpunks repositories - gostls13.git/commitdiff
database/sql: fix typo in comment
authorTobias Klauser <tklauser@distanz.ch>
Wed, 7 Mar 2018 09:20:19 +0000 (10:20 +0100)
committerTobias Klauser <tobias.klauser@gmail.com>
Wed, 7 Mar 2018 15:42:31 +0000 (15:42 +0000)
Change-Id: Ie2966bae1dc2e542c42fb32d8059a4b2d4690014
Reviewed-on: https://go-review.googlesource.com/99115
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/database/sql/sql.go

index 24e906938eb83d096e38235770e2634267b3a5f7..05d15455c03bc81e0780c2349cc724db1c40b498 100644 (file)
@@ -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: