]> Cypherpunks repositories - gostls13.git/commitdiff
database/sql: fix typo and wording
authorKevin Burke <kev@inburke.com>
Mon, 2 Jan 2017 21:19:31 +0000 (13:19 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 2 Jan 2017 22:17:24 +0000 (22:17 +0000)
Clean up the phrasing a little bit, make the comment fit in 80
characters, and fix the spelling of "guard."

Change-Id: I688a3e760b8d67ea83830635f64dff04dd9a5911
Reviewed-on: https://go-review.googlesource.com/34792
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/database/sql/sql_test.go

index 9d2ee97009fc150ef35ba4e3c37f395c5be03dc5..63e1292cb1f2c50591f2e1f63f2606a879de5e95 100644 (file)
@@ -2607,13 +2607,13 @@ func TestIssue6081(t *testing.T) {
        }
 }
 
-// TestIssue18429 attempts to stress rolling back the transaction from a context
-// cancel while simultaneously calling Tx.Rollback. Rolling back from a context
-// happens concurrently so tx.rollback and tx.Commit must gaurded to not
-// be entered twice.
+// TestIssue18429 attempts to stress rolling back the transaction from a
+// context cancel while simultaneously calling Tx.Rollback. Rolling back from a
+// context happens concurrently so tx.rollback and tx.Commit must guard against
+// double entry.
 //
-// The test is composed of a context that is canceled while the query is in process
-// so the internal rollback will run concurrently with the explicitly called
+// In the test, a context is canceled while the query is in process so
+// the internal rollback will run concurrently with the explicitly called
 // Tx.Rollback.
 func TestIssue18429(t *testing.T) {
        db := newTestDB(t, "people")