mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-13 06:43:52 +00:00
fixes docs (#22331)
This commit is contained in:
@@ -914,7 +914,7 @@ proc default*[T](_: typedesc[T]): T {.magic: "Default", noSideEffect.} =
|
||||
## See also:
|
||||
## * `zeroDefault <#zeroDefault,typedesc[T]>`_
|
||||
##
|
||||
runnableExamples:
|
||||
runnableExamples("-d:nimPreviewRangeDefault"):
|
||||
assert (int, float).default == (0, 0.0)
|
||||
type Foo = object
|
||||
a: range[2..6]
|
||||
|
||||
Reference in New Issue
Block a user