Fix broken links in docs (#16336)

* Fix broken links in docs

* Fix rand HSlice links
This commit is contained in:
Elliot Waite 2020-12-14 11:13:12 -08:00 • committed by GitHub
commit f3d57761ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 126 additions and 120 deletions

View file

@ -165,7 +165,7 @@ proc initPackedSet*[A]: PackedSet[A] =
## A must be Ordinal
##
## See also:
## * `toPackedSet[A] proc <#toPackedSet[A],openArray[int]>`_
## * `toPackedSet[A] proc <#toPackedSet,openArray[A]>`_
runnableExamples:
var a = initPackedSet[int]()
assert len(a) == 0
@ -273,7 +273,7 @@ proc toPackedSet*[A](x: openArray[A]): PackedSet[A] {.since: (1, 3).} =
## Duplicates are removed.
##
## See also:
## * `initPackedSet[A] proc <#initPackedSet[A]>`_
## * `initPackedSet[A] proc <#initPackedSet>`_
runnableExamples:
var
a = toPackedSet([5, 6, 7])
@ -418,7 +418,7 @@ proc isNil*[A](x: PackedSet[A]): bool {.inline.} = x.head.isNil and x.elems == 0
proc assign*[A](dest: var PackedSet[A], src: PackedSet[A]) =
## Copies `src` to `dest`.
## `dest` does not need to be initialized by `initPackedSet[A] proc <#initPackedSet[A]>`_.
## `dest` does not need to be initialized by `initPackedSet[A] proc <#initPackedSet>`_.
runnableExamples:
var
a = initPackedSet[int]()