From 5565a448dfc2cfae1b807742fc6d684703a80ad5 Mon Sep 17 00:00:00 2001 From: Vindaar Date: Wed, 26 Apr 2023 10:40:15 +0200 Subject: [PATCH] [misc] openarray -> openArray --- flambeau/raw/sugar/rawinterop.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flambeau/raw/sugar/rawinterop.nim b/flambeau/raw/sugar/rawinterop.nim index ae48694..8be3820 100644 --- a/flambeau/raw/sugar/rawinterop.nim +++ b/flambeau/raw/sugar/rawinterop.nim @@ -30,7 +30,7 @@ type Metadata* = DynamicStackArray[int64] template asNimView*[T](ar: ArrayRef[T]): openArray[T] = toOpenArray(ar.data.unsafeAddr, 0, ar.size.int - 1) -template asTorchView*[T](oa: openarray[T]): ArrayRef[T] = +template asTorchView*[T](oa: openArray[T]): ArrayRef[T] = # Don't remove. This makes @[1, 2, 3].asTorchView works let a = @oa ArrayRef[T].init(a[0].unsafeAddr, a.len)