Skip to content

Commit

Permalink
fixes for devel
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout committed Nov 23, 2024
1 parent d51c09a commit e0d8e85
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/system.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2973,5 +2973,6 @@ proc arrayWith*[T](y: T, size: static int): array[size, T] {.raises: [].} =

proc arrayWithDefault*[T](size: static int): array[size, T] {.raises: [].} =
## Creates a new array filled with `default(T)`.
result = zeroDefault(array[size, T])
for i in 0..size-1:
result[i] = default(T)

0 comments on commit e0d8e85

Please sign in to comment.