[minor] fix docs (#18834)
This commit is contained in:
parent
6c2f041368
commit
1f68f71ec2
1 changed files with 4 additions and 6 deletions
|
|
@ -603,12 +603,10 @@ proc isValid*[A](s: HashSet[A]): bool {.deprecated:
|
||||||
## Returns `true` if the set has been initialized (with `initHashSet proc
|
## Returns `true` if the set has been initialized (with `initHashSet proc
|
||||||
## <#initHashSet>`_ or `init proc <#init,HashSet[A]>`_).
|
## <#initHashSet>`_ or `init proc <#init,HashSet[A]>`_).
|
||||||
##
|
##
|
||||||
## **Examples:**
|
runnableExamples:
|
||||||
##
|
proc savePreferences(options: HashSet[string]) =
|
||||||
## .. code-block ::
|
assert options.isValid, "Pass an initialized set!"
|
||||||
## proc savePreferences(options: HashSet[string]) =
|
# Do stuff here, may crash in release builds!
|
||||||
## assert options.isValid, "Pass an initialized set!"
|
|
||||||
## # Do stuff here, may crash in release builds!
|
|
||||||
result = s.data.len > 0
|
result = s.data.len > 0
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue