aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorTetralux <tetralux@teknik.io>2020-11-05 00:51:50 +0000
committerTetralux <tetralux@teknik.io>2020-11-05 00:52:32 +0000
commitc1d3c3f9268bfbdf94e180ce0b032f76cd3c64b8 (patch)
tree95edb803261e6f9ccaa987ebb00fb52a7eb7d9a9 /core
parent81398d21ed25ca50dcfab7b9c7135c33adbb8e34 (diff)
Fix slice.last()
There was a typo that prevented it from being used.
Diffstat (limited to 'core')
-rw-r--r--core/slice/slice.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/slice/slice.odin b/core/slice/slice.odin
index 764eb6334..3076fe641 100644
--- a/core/slice/slice.odin
+++ b/core/slice/slice.odin
@@ -216,7 +216,7 @@ split_last :: proc(array: $T/[]$E) -> (rest: T, last: E) {
first :: proc(array: $T/[]$E) -> E {
return array[0];
}
-last :: proc(array: $T/[]$E) -> ^E {
+last :: proc(array: $T/[]$E) -> E {
return array[len(array)-1];
}