From 9331f06c0b2812495ec843117c0d9609ab5d1e01 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Wed, 24 Oct 2018 21:50:47 +0200 Subject: parsutils: minor doc improvements --- lib/pure/parseutils.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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: -- cgit 1.4.1-2-gfad0 ='/ahoang/Nim/blame/tests/misc/tatomic.nim?h=devel&id=d4c32102d829ffdbca117da27d2bbe876b4ad10f'>blame commit diff stats
path: root/tests/misc/tatomic.nim
blob: 1fa0cff8d08f95eb092a6e3ddd64d20df4a7baa8 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                             
ef='#n40'>40
41
42
43
44
45
46
47
48