Skip to content

Commit

Permalink
database/sql: fix docs to correctly refer to time.RFC3339Nano
Browse files Browse the repository at this point in the history
It mentions time.Format3339Nano, which isn’t defined. The
underlying code uses time.RFC3339Nano.

Updates #24542

Change-Id: Ia34ae8b66427139d9005f902c2eb60aac4bfa8c6
Reviewed-on: https://go-review.googlesource.com/102607
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
  • Loading branch information
andybons committed Mar 26, 2018
1 parent 48db2c0 commit 165ebe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/database/sql/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 165ebe6

Please sign in to comment.