summary refs log tree commit diff stats
path: root/lib/pure/collections
diff options
context:
space:
mode:
authorGrzegorz Adam Hankiewicz <gradha@imap.cc>2013-01-09 17:54:01 +0100
committerGrzegorz Adam Hankiewicz <gradha@imap.cc>2013-01-09 20:32:58 +0100
commitabca30cc067348cc0d4cf6e62e8fe2a70de0a9ae (patch)
tree63c1ef31bfb1170591d42053b1e6542aee6cdf75 /lib/pure/collections
parent1757baecaff7b1fbe445cf47a2615e36aa0c4a0c (diff)
downloadNim-abca30cc067348cc0d4cf6e62e8fe2a70de0a9ae.tar.gz
Adds note about distnct being misspelled on purpose.
Diffstat (limited to 'lib/pure/collections')
-rw-r--r--lib/pure/collections/sequtils.nim6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/pure/collections/sequtils.nim b/lib/pure/collections/sequtils.nim
index 34858b548..e4ea22830 100644
--- a/lib/pure/collections/sequtils.nim
+++ b/lib/pure/collections/sequtils.nim
@@ -48,7 +48,11 @@ proc concat*[T](seqs: varargs[seq[T]]): seq[T] =
       inc(i)
 
 proc distnct*[T](seq1: seq[T]): seq[T] =
-  ## Returns a new sequence without duplicates. Example:
+  ## Returns a new sequence without duplicates.
+  ##
+  ## This proc is `misspelled` on purpose to avoid a clash with the keyword
+  ## ``distinct`` used to `define a derived type incompatible with its base
+  ## type <manual.html#distinct-type>`_. Example:
   ##
   ## .. code-block:: nimrod
   ##   let