intsets.empty is wrong
This commit is contained in:
parent
0b1989e6ca
commit
9fe1aa6996
1 changed files with 3 additions and 2 deletions
|
|
@ -191,9 +191,10 @@ proc `$`*(s: IntSet): string =
|
||||||
## The `$` operator for int sets.
|
## The `$` operator for int sets.
|
||||||
dollarImpl()
|
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
|
## 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
|
result = s.counter == 0
|
||||||
|
|
||||||
when isMainModule:
|
when isMainModule:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue