summaryrefslogtreecommitdiff
path: root/std/slice.zc
diff options
context:
space:
mode:
authorZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-31 15:48:07 +0000
committerZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-31 15:48:07 +0000
commitaced94a89dd732d8ae8fddd27de9e1f1094c449a (patch)
tree53ea0be7d9c39249ebe8d64ed06e2acc623748ba /std/slice.zc
parentccc53b11a0e273f46cb40e5f0eb32a74ab6750bf (diff)
Fix for #158
Diffstat (limited to 'std/slice.zc')
-rw-r--r--std/slice.zc4
1 files changed, 2 insertions, 2 deletions
diff --git a/std/slice.zc b/std/slice.zc
index 3c317ca..c757fbd 100644
--- a/std/slice.zc
+++ b/std/slice.zc
@@ -28,8 +28,8 @@ impl SliceIter<T> {
}
impl Slice<T> {
- fn from_array(arr: T*, len: usize) -> Slice<T> {
- return Slice<T> { data: arr, len: len };
+ fn from_array(ptr: T*, len: usize) -> Slice<T> {
+ return Slice<T> { data: ptr, len: len };
}
// Alias for backwards compatibility with std/mem.zc