fixes docs (#22331)

This commit is contained in:
ringabout
2023-07-26 10:04:34 +08:00
committed by GitHub
parent c0994c2dbd
commit 11c8dfc9b3

View File

@@ -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]