summary refs log tree commit diff stats
diff options
context:
space:
mode:
authoree7 <45465154+ee7@users.noreply.github.com>2019-03-02 17:25:14 +0000
committerMiran <narimiran@disroot.org>2019-03-02 18:25:14 +0100
commitd6882691ad957b132728cc3c801d07fae0f92f59 (patch)
treea362820d96f74eea576d74574c0881ae1ccccfd3
parent5ac7e32c7cc1e39b8bbbefe57b12cbf4074fa368 (diff)
downloadNim-d6882691ad957b132728cc3c801d07fae0f92f59.tar.gz
times.nim: Fix docs for duration conversion procs [ci skip] (#10770)
-rw-r--r--lib/pure/times.nim10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/pure/times.nim b/lib/pure/times.nim
index cc6a61b21..c910ce009 100644
--- a/lib/pure/times.nim
+++ b/lib/pure/times.nim
@@ -515,14 +515,14 @@ proc inHours*(dur: Duration): int64 =
   ## Convert the duration to the number of whole hours.
   runnableExamples:
     let dur = initDuration(minutes = 60, days = 2)
-    doAssert dur.hours == 49
+    doAssert dur.inHours == 49
   dur.convert(Hours)
 
 proc inMinutes*(dur: Duration): int64 =
   ## Convert the duration to the number of whole minutes.
   runnableExamples:
     let dur = initDuration(hours = 2, seconds = 10)
-    doAssert dur.minutes == 120
+    doAssert dur.inMinutes == 120
   dur.convert(Minutes)
 
 proc inSeconds*(dur: Duration): int64 =
@@ -2612,10 +2612,10 @@ proc minutes*(dur: Duration): int64
 
 proc seconds*(dur: Duration): int64
     {.inline, deprecated: "Use `inSeconds` instead".} =
-  ## Number of whole minutes represented by the duration.
+  ## Number of whole seconds represented by the duration.
   ##
-  ## **Deprecated since version v0.20.0**: Use the `inMinutes proc
-  ## <#inMinutes,Duration>`_ instead.
+  ## **Deprecated since version v0.20.0**: Use the `inSeconds proc
+  ## <#inSeconds,Duration>`_ instead.
   runnableExamples:
     let dur = initDuration(minutes = 10, seconds = 30)
     doAssert dur.seconds == 630