mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 14:00:35 +00:00
Fix broken links in docs (#16336)
* Fix broken links in docs * Fix rand HSlice links
This commit is contained in:
@@ -278,7 +278,7 @@ proc fromJsonHook*[K, V](t: var (Table[K, V] | OrderedTable[K, V]),
|
||||
## Enables `fromJson` for `Table` and `OrderedTable` types.
|
||||
##
|
||||
## See also:
|
||||
## * `toJsonHook proc<#toJsonHook,(Table[K,V]|OrderedTable[K,V])>`_
|
||||
## * `toJsonHook proc<#toJsonHook>`_
|
||||
runnableExamples:
|
||||
import tables, json
|
||||
var foo: tuple[t: Table[string, int], ot: OrderedTable[string, int]]
|
||||
@@ -298,7 +298,7 @@ proc toJsonHook*[K, V](t: (Table[K, V] | OrderedTable[K, V])): JsonNode =
|
||||
## Enables `toJson` for `Table` and `OrderedTable` types.
|
||||
##
|
||||
## See also:
|
||||
## * `fromJsonHook proc<#fromJsonHook,(Table[K,V]|OrderedTable[K,V]),JsonNode>`_
|
||||
## * `fromJsonHook proc<#fromJsonHook,,JsonNode>`_
|
||||
runnableExamples:
|
||||
import tables, json
|
||||
let foo = (
|
||||
@@ -383,7 +383,7 @@ proc fromJsonHook*(a: var StringTableRef, b: JsonNode) =
|
||||
## Enables `fromJson` for `StringTableRef` type.
|
||||
##
|
||||
## See also:
|
||||
## * `toJsonHook` proc<#toJsonHook,StringTableRef>`_
|
||||
## * `toJsonHook proc<#toJsonHook,StringTableRef>`_
|
||||
runnableExamples:
|
||||
import strtabs, json
|
||||
var t = newStringTable(modeCaseSensitive)
|
||||
@@ -401,7 +401,7 @@ proc toJsonHook*(a: StringTableRef): JsonNode =
|
||||
## Enables `toJson` for `StringTableRef` type.
|
||||
##
|
||||
## See also:
|
||||
## * `fromJsonHook` proc<#fromJsonHook,StringTableRef,JsonNode>`_
|
||||
## * `fromJsonHook proc<#fromJsonHook,StringTableRef,JsonNode>`_
|
||||
runnableExamples:
|
||||
import strtabs, json
|
||||
let t = newStringTable("name", "John", "surname", "Doe", modeCaseSensitive)
|
||||
|
||||
@@ -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]()
|
||||
|
||||
Reference in New Issue
Block a user