Changing asArray documentation

in reaction to https://github.com/nim-lang/Nim/pull/6640#discussion_r148367553
This commit is contained in:
Fredrik Høisæther Rasch
2017-11-02 22:49:43 +01:00
committed by Andreas Rumpf
parent 70f3226836
commit 3d11ef8511

View File

@@ -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:
##