summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-07-06 13:27:05 +0200
committerGitHub <noreply@github.com>2016-07-06 13:27:05 +0200
commitfb1c2fec37a46dd49cd3c8d63d4d6e472149fefb (patch)
treeb387e5aa46e1146918b736e566034b21a74a29fc /lib/pure
parentb681e91745a49944e8429b79a1895f850b7e5762 (diff)
parenta6c66139fa2bf3b1481050c90ad7acbaf9dcec29 (diff)
downloadNim-fb1c2fec37a46dd49cd3c8d63d4d6e472149fefb.tar.gz
Merge pull request #4455 from mbaulch/fix_excl_examples
Update sets examples so they work again.
Diffstat (limited to 'lib/pure')
-rw-r--r--lib/pure/collections/sets.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pure/collections/sets.nim b/lib/pure/collections/sets.nim
index e2081e5bf..20e06aaae 100644
--- a/lib/pure/collections/sets.nim
+++ b/lib/pure/collections/sets.nim
@@ -58,7 +58,7 @@ proc isValid*[A](s: HashSet[A]): bool =
   ## initialized. Example:
   ##
   ## .. code-block ::
-  ##   proc savePreferences(options: Set[string]) =
+  ##   proc savePreferences(options: HashSet[string]) =
   ##     assert options.isValid, "Pass an initialized set!"
   ##     # Do stuff here, may crash in release builds!
   result = not s.data.isNil
@@ -72,7 +72,7 @@ proc len*[A](s: HashSet[A]): int =
   ##
   ## .. code-block::
   ##
-  ##   var values: Set[int]
+  ##   var values: HashSet[int]
   ##   assert(not values.isValid)
   ##   assert values.len == 0
   result = s.counter
@@ -338,7 +338,7 @@ proc init*[A](s: var HashSet[A], initialSize=64) =
   ## existing values and calling `excl() <#excl,TSet[A],A>`_ on them. Example:
   ##
   ## .. code-block ::
-  ##   var a: Set[int]
+  ##   var a: HashSet[int]
   ##   a.init(4)
   ##   a.incl(2)
   ##   a.init