summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-10-24 21:50:47 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-10-24 21:52:33 +0200
commit9331f06c0b2812495ec843117c0d9609ab5d1e01 (patch)
tree03512c6aaf2087b967c96001f665d9e9d46994cb /lib
parent963292f7259798b668e5a35175bb51e9483372d1 (diff)
downloadNim-9331f06c0b2812495ec843117c0d9609ab5d1e01.tar.gz
parsutils: minor doc improvements
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/parseutils.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/parseutils.nim b/lib/pure/parseutils.nim
index e633d8cf7..80e67b58f 100644
--- a/lib/pure/parseutils.nim
+++ b/lib/pure/parseutils.nim
@@ -278,7 +278,7 @@ proc parseInt*(s: string, number: var int, start = 0): int {.
   rtl, extern: "npuParseInt", noSideEffect.} =
   ## parses an integer starting at `start` and stores the value into `number`.
   ## Result is the number of processed chars or 0 if there is no integer.
-  ## `EOverflow` is raised if an overflow occurs.
+  ## `OverflowError` is raised if an overflow occurs.
   var res: BiggestInt
   result = parseBiggestInt(s, res, start)
   if (sizeof(int) <= 4) and
@@ -289,7 +289,7 @@ proc parseInt*(s: string, number: var int, start = 0): int {.
 
 proc parseSaturatedNatural*(s: string, b: var int, start = 0): int =
   ## parses a natural number into ``b``. This cannot raise an overflow
-  ## error. Instead of an ``Overflow`` exception ``high(int)`` is returned.
+  ## error. ``high(int)`` is returned for an overflow.
   ## The number of processed character is returned.
   ## This is usually what you really want to use instead of `parseInt`:idx:.
   ## Example: