[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
|
||||
## <#initHashSet>`_ or `init proc <#init,HashSet[A]>`_).
|
||||
##
|
||||
## **Examples:**
|
||||
##
|
||||
## .. code-block ::
|
||||
## proc savePreferences(options: HashSet[string]) =
|
||||
## assert options.isValid, "Pass an initialized set!"
|
||||
## # Do stuff here, may crash in release builds!
|
||||
runnableExamples:
|
||||
proc savePreferences(options: HashSet[string]) =
|
||||
assert options.isValid, "Pass an initialized set!"
|
||||
# Do stuff here, may crash in release builds!
|
||||
result = s.data.len > 0
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue