From b2d1ba5cd8efca7ecaeb5997cf194de3798dd837 Mon Sep 17 00:00:00 2001 From: Mark McGranaghan Date: Fri, 10 Jan 2014 06:33:03 -0800 Subject: [PATCH] Tweak time formatting wording Use non-teletype to indicate that it's the logical values that need to be exact, not the specific text which will vary by format. --- .../time-formatting-parsing/time-formatting-parsing.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/time-formatting-parsing/time-formatting-parsing.go b/examples/time-formatting-parsing/time-formatting-parsing.go index 1106120..e840264 100644 --- a/examples/time-formatting-parsing/time-formatting-parsing.go +++ b/examples/time-formatting-parsing/time-formatting-parsing.go @@ -18,10 +18,10 @@ func main() { // takes a formatted version of the reference time // `Mon Jan 2 15:04:05 MST 2006` to determine the // general pattern with which to format the given - // time. The examples must be exactly as shown: only - // `2006` for the year, only `15` for the hour, only - // `Mon` for the day of week, and so on. Here are a - // few more examples of time formatting. + // time. The example time must be exactly as shown: the + // year 2006, 15 for the hour, Monday for the day of the + // week, etc. Here are a few more examples of time + // formatting. p(t.Format("3:04PM")) p(t.Format("Mon Jan _2 15:04:05 2006")) p(t.Format("2006-01-02T15:04:05.999999-07:00"))