summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-11-15 11:10:13 +0100
committerAraq <rumpf_a@web.de>2014-11-15 11:10:13 +0100
commitf7dca91344392a200392bdbd5d2d7c5167298e93 (patch)
treeff064678872c4a6ce43ee41b292d12feeb223ece /lib
parent9e00d3aec2da69c23cdb5dba0e3f654e99ded379 (diff)
downloadNim-f7dca91344392a200392bdbd5d2d7c5167298e93.tar.gz
fixes #619
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/collections/sequtils.nim4
-rw-r--r--lib/pure/fenv.nim2
-rw-r--r--lib/system.nim5
3 files changed, 7 insertions, 4 deletions
diff --git a/lib/pure/collections/sequtils.nim b/lib/pure/collections/sequtils.nim
index b824210a5..befc9bacb 100644
--- a/lib/pure/collections/sequtils.nim
+++ b/lib/pure/collections/sequtils.nim
@@ -302,6 +302,10 @@ template toSeq*(iter: expr): expr {.immediate.} =
   ##         result = true)
   ##   assert odd_numbers == @[1, 3, 5, 7, 9]
   ##
+  ## **Note**: Since this is an immediate macro, you cannot always invoke this
+  ## as ``x.toSeq``, depending on the ``x``.
+  ## See `this <manual.html#limitations-of-the-method-call-syntax>`_
+  ## for an explanation.
   var result {.gensym.}: seq[type(iter)] = @[]
   for x in iter: add(result, x)
   result
diff --git a/lib/pure/fenv.nim b/lib/pure/fenv.nim
index 1859f7be7..415ef455e 100644
--- a/lib/pure/fenv.nim
+++ b/lib/pure/fenv.nim
@@ -8,7 +8,7 @@
 #
 
 ## Floating-point environment. Handling of floating-point rounding and
-## exceptions (overflow, zero-devide, etc.).
+## exceptions (overflow, division by zero, etc.).
 
 {.deadCodeElim:on.}
 
diff --git a/lib/system.nim b/lib/system.nim
index 59a10f7e8..f268889d6 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -904,9 +904,8 @@ proc `of` *[T, S](x: T, y: S): bool {.magic: "Of", noSideEffect.}
   ## Checks if `x` has a type of `y`
   ##
   ## .. code-block:: Nim
-  ##   assert(EFloatingPoint of EBase)
-  ##   assert(EIO of ESystem)
-  ##   assert(EDivByZero of EBase)
+  ##   assert(FloatingPointError of Exception)
+  ##   assert(DivByZeroError of Exception)
 
 proc cmp*[T](x, y: T): int {.procvar.} =
   ## Generic compare proc. Returns a value < 0 iff x < y, a value > 0 iff x > y