diff options
author | flywind <xzsflywind@gmail.com> | 2021-09-11 17:33:52 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-11 11:33:52 +0200 |
commit | 1f68f71ec24d3ec6b8e83411a6f1604277f9d493 (patch) | |
tree | cb9d962cef72db01b0a40d14f99c45019b281749 | |
parent | 6c2f041368e36bb7a6b217c7ac0c5de94c7b4a7a (diff) | |
download | Nim-1f68f71ec24d3ec6b8e83411a6f1604277f9d493.tar.gz |
[minor] fix docs (#18834)
-rw-r--r-- | lib/pure/collections/sets.nim | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/pure/collections/sets.nim b/lib/pure/collections/sets.nim index 3f91d9030..7b1c58ac8 100644 --- a/lib/pure/collections/sets.nim +++ b/lib/pure/collections/sets.nim @@ -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 |