summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-02-17 00:44:02 +0100
committerAraq <rumpf_a@web.de>2015-02-18 13:44:00 +0100
commit9fe1aa6996e41294871734fb5e7d41f464d75a3b (patch)
tree0d8a1b9beaec3ece7f5d41fec2a61d5cd54196ea /lib
parent0b1989e6ca561d66271943349f4e4b12db8cd429 (diff)
downloadNim-9fe1aa6996e41294871734fb5e7d41f464d75a3b.tar.gz
intsets.empty is wrong
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/collections/intsets.nim5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/pure/collections/intsets.nim b/lib/pure/collections/intsets.nim
index b46e040ca..7520e6e46 100644
--- a/lib/pure/collections/intsets.nim
+++ b/lib/pure/collections/intsets.nim
@@ -191,9 +191,10 @@ proc `$`*(s: IntSet): string =
   ## The `$` operator for int sets.
   dollarImpl()
 
-proc empty*(s: IntSet): bool {.inline.} =
+proc empty*(s: IntSet): bool {.inline, deprecated.} =
   ## returns true if `s` is empty. This is safe to call even before
-  ## the set has been initialized with `initIntSet`.
+  ## the set has been initialized with `initIntSet`. Note this never
+  ## worked reliably and so is deprecated.
   result = s.counter == 0
 
 when isMainModule: