From: Tobias Klauser Date: Wed, 7 Mar 2018 09:20:19 +0000 (+0100) Subject: database/sql: fix typo in comment X-Git-Tag: go1.11beta1~1309 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=06572356602c414b84019693cec7286882aa845e;p=gostls13.git database/sql: fix typo in comment Change-Id: Ie2966bae1dc2e542c42fb32d8059a4b2d4690014 Reviewed-on: https://go-review.googlesource.com/99115 Reviewed-by: Ian Lance Taylor --- diff --git a/src/database/sql/sql.go b/src/database/sql/sql.go index 24e906938e..05d15455c0 100644 --- a/src/database/sql/sql.go +++ b/src/database/sql/sql.go @@ -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: