mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-01 02:42:05 +00:00
Adds note about distnct being misspelled on purpose.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user