]> Cypherpunks repositories - gostls13.git/commitdiff
database/sql: add description to String method of IsolationLevel struct.
authorVladimir Kovpak <cn007b@gmail.com>
Fri, 2 Nov 2018 16:56:42 +0000 (16:56 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 2 Nov 2018 17:28:53 +0000 (17:28 +0000)
Add simple description to String method of IsolationLevel struct.

Change-Id: I8bdf829c81d4895b8542a3f21437bed61c6e925d
GitHub-Last-Rev: 7e16d6a93a9560cf3a09413dfc47d0cb04bb2fde
GitHub-Pull-Request: golang/go#28560
Reviewed-on: https://go-review.googlesource.com/c/147040
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/database/sql/sql.go

index 31db7a47d6d7b5ce8bab94e23a48f7fef1d02766..16f1c9fce82dee352b2d3ae67d02bd8d96f75774 100644 (file)
@@ -133,6 +133,7 @@ const (
        LevelLinearizable
 )
 
+// String returns the name of the transaction isolation level.
 func (i IsolationLevel) String() string {
        switch i {
        case LevelDefault: