Skip to content

Commit

Permalink
time: Fix typo in Time.String() description.
Browse files Browse the repository at this point in the history
Refs #12914.

Change-Id: Iadac4cbef70db6a95b47f86eaffcfc63bfdb8e90
Reviewed-on: https://go-review.googlesource.com/36334
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
  • Loading branch information
AlekSi authored and bradfitz committed Feb 5, 2017
1 parent b53f0f8 commit 172311c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/time/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -424,9 +424,9 @@ func formatNano(b []byte, nanosec uint, n int, trim bool) []byte {

// String returns the time formatted using the format string
// "2006-01-02 15:04:05.999999999 -0700 MST"
//
//
// If the time has a monotonic clock reading, the returned string
// includes a final field "m±<value>", where value is the monotonic
// includes a final field "m=±<value>", where value is the monotonic
// clock reading formatted as a decimal number of seconds.
func (t Time) String() string {
s := t.Format("2006-01-02 15:04:05.999999999 -0700 MST")
Expand Down

0 comments on commit 172311c

Please sign in to comment.