diff options
author | Derek 呆 <116649+derekdai@users.noreply.github.com> | 2022-11-12 02:31:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-11 19:31:59 +0100 |
commit | 6007a40eac60b52b3c2edb4ed6e8399c96c0f939 (patch) | |
tree | d06d3d230ee72d2d85da5d88a79c1a984dacabf1 /lib/system/repr_v2.nim | |
parent | 993630e40fbaa7d8aeb39a796d4ba283fdbb8bff (diff) | |
download | Nim-6007a40eac60b52b3c2edb4ed6e8399c96c0f939.tar.gz |
support `UncheckedArray[T]` in repr_v2.nim (#20816)
Diffstat (limited to 'lib/system/repr_v2.nim')
-rw-r--r-- | lib/system/repr_v2.nim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/system/repr_v2.nim b/lib/system/repr_v2.nim index 60c09e073..f6c720e2c 100644 --- a/lib/system/repr_v2.nim +++ b/lib/system/repr_v2.nim @@ -189,4 +189,7 @@ proc repr*[T](x: openArray[T]): string = ## ## .. code-block:: Nim ## $(@[23, 45].toOpenArray(0, 1)) == "[23, 45]" - collectionToRepr(x, "[", ", ", "]") \ No newline at end of file + collectionToRepr(x, "[", ", ", "]") + +proc repr*[T](x: UncheckedArray[T]): string = + "[...]" |