summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorEuan T <euantorano@users.noreply.github.com>2017-06-22 12:52:13 +0100
committerAndreas Rumpf <rumpf_a@web.de>2017-06-22 13:52:13 +0200
commit3a2ab81df1794f99d9783394df5b30a1252d2dea (patch)
tree16345e6db622c456ffd290eca70a7ac74b00d43c
parentf682bb6de0df2b967ec629a043c2736d97aca0ad (diff)
downloadNim-3a2ab81df1794f99d9783394df5b30a1252d2dea.tar.gz
Fix #6010 documenting subtracting time interval (#6012)
-rw-r--r--lib/pure/times.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/times.nim b/lib/pure/times.nim
index eff912d12..cfa38700d 100644
--- a/lib/pure/times.nim
+++ b/lib/pure/times.nim
@@ -479,7 +479,7 @@ proc `-=`*(t: var Time, ti: TimeInterval) =
   t = toTime(getLocalTime(t) - ti)
 
 proc `-`*(t: Time, ti: TimeInterval): Time =
-  ## adds the interval `ti` to Time `t`
+  ## subtracts the interval `ti` from Time `t`
   ##
   ## ``echo getTime() - 1.day``
   result = toTime(getLocalTime(t) - ti)