]> Cypherpunks repositories - gostls13.git/commitdiff
doc: fix description of Duration.Round
authorHeschi Kreinick <heschi@google.com>
Fri, 16 Jun 2017 20:01:02 +0000 (16:01 -0400)
committerHeschi Kreinick <heschi@google.com>
Fri, 16 Jun 2017 20:53:59 +0000 (20:53 +0000)
Round doesn't always round away from zero.

Feel free to suggest better wording.

Change-Id: I52b3815013fff4c656ae8d861521c342bc4135b7
Reviewed-on: https://go-review.googlesource.com/46032
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
doc/go1.9.html

index 3e7f1477c9ca74d24b0176f7c105910f8fba2897..5c877bc4c9383904eb2a5176f1011d7c33f686ba 100644 (file)
@@ -798,7 +798,7 @@ CL 40331: https://golang.org/cl/40331: cmd/link,runtime/cgo: enable PT_TLS gener
       <a href="/pkg/time/#Duration.Round"><code>Duration.Round</code></a>
       and 
       <a href="/pkg/time/#Duration.Truncate"><code>Duration.Truncate</code></a>
-      handle rounding durations away from and towards zero, respectively.
+      handle rounding and truncating durations to multiples of a given duration.
     </p>
 
     <p><!-- CL 35710 -->