make slice.as_ptr return [^]E

This commit is contained in:
gingerBill
2021-12-28 14:16:27 +00:00
parent 36c61aeacf
commit dbf42d2469

View File

@@ -273,7 +273,7 @@ get_ptr :: proc(array: $T/[]$E, index: int) -> (value: ^E, ok: bool) {
return
}
as_ptr :: proc(array: $T/[]$E) -> ^E {
as_ptr :: proc(array: $T/[]$E) -> [^]E {
return raw_data(array)
}