mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-13 23:03:36 +00:00
Changing asArray documentation
in reaction to https://github.com/nim-lang/Nim/pull/6640#discussion_r148367553
This commit is contained in:
committed by
Andreas Rumpf
parent
70f3226836
commit
3d11ef8511
@@ -707,8 +707,8 @@ template newSeqWith*(len: int, init: untyped): untyped =
|
||||
when not defined(nimscript):
|
||||
import macros
|
||||
macro asArray*(values: typed, targetType: typedesc): untyped =
|
||||
## converts a static array to an array of type ``targetType`` by converting
|
||||
## each value in the array to the specified type.
|
||||
## applies a type conversion to each of the elements in the specified
|
||||
## array literal. Each element is converted to the ``targetType`` type..
|
||||
##
|
||||
## Example:
|
||||
##
|
||||
|
||||
Reference in New Issue
Block a user