Browse Source

make `slice.as_ptr` return `[^]E`

gingerBill 3 years ago
parent
commit
dbf42d2469
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/slice/slice.odin

+ 1 - 1
core/slice/slice.odin

@@ -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)
 }