]> Cypherpunks repositories - gostls13.git/commitdiff
time: fix godoc links; remove redundant Sub mention
authorOleksandr Redko <oleksandr.red+github@gmail.com>
Sun, 18 Aug 2024 20:20:15 +0000 (23:20 +0300)
committerGopher Robot <gobot@golang.org>
Tue, 20 Aug 2024 16:10:45 +0000 (16:10 +0000)
The Time.Sub function is mentioned in the previous sentence.

Change-Id: Ic79958cea4d1f9f9014f6dafd8e749c204db4f50
Reviewed-on: https://go-review.googlesource.com/c/go/+/606575
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>

src/time/time.go

index 572ea64ccfcd88efa2c4f6e0432bc8952f5e4f45..0ff7faedec34f78a37ee37ca13e6af81bb5a53f8 100644 (file)
@@ -54,8 +54,8 @@
 // On some systems the monotonic clock will stop if the computer goes to sleep.
 // On such a system, t.Sub(u) may not accurately reflect the actual
 // time that passed between t and u. The same applies to other functions and
-// methods that subtract times, such as [Since], [Until], [Before], [After],
-// [Add], [Sub], [Equal] and [Compare]. In some cases, you may need to strip
+// methods that subtract times, such as [Since], [Until], [Time.Before], [Time.After],
+// [Time.Add], [Time.Equal] and [Time.Compare]. In some cases, you may need to strip
 // the monotonic clock to get accurate results.
 //
 // Because the monotonic clock reading has no meaning outside