]> Cypherpunks repositories - gostls13.git/commitdiff
database/sql: fix docs to correctly refer to time.RFC3339Nano
authorAndrew Bonventre <andybons@golang.org>
Mon, 26 Mar 2018 22:58:53 +0000 (18:58 -0400)
committerAndrew Bonventre <andybons@golang.org>
Mon, 26 Mar 2018 23:12:45 +0000 (23:12 +0000)
It mentions time.Format3339Nano, which isn’t defined. The
underlying code uses time.RFC3339Nano.

Updates golang/go#24542

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

index 784ffac26d9e4ac226598ce3552610189a6ba21d..088e118df767d2e46a6b375c2cb92a5972f0256f 100644 (file)
@@ -2856,7 +2856,7 @@ func rowsColumnInfoSetupConnLocked(rowsi driver.Rows) []*ColumnType {
 //
 // Source values of type time.Time may be scanned into values of type
 // *time.Time, *interface{}, *string, or *[]byte. When converting to
-// the latter two, time.Format3339Nano is used.
+// the latter two, time.RFC3339Nano is used.
 //
 // Source values of type bool may be scanned into types *bool,
 // *interface{}, *string, *[]byte, or *RawBytes.