Bläddra i källkod

Merge pull request #2239 from awwdev/patch-3

Fix typo err: runtime.Allocator to Allocator_Error
Jeroen van Rijn 2 år sedan
förälder
incheckning
9fc606de48
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      core/slice/map.odin

+ 1 - 1
core/slice/map.odin

@@ -37,7 +37,7 @@ Map_Entry_Info :: struct($Key, $Value: typeid) {
 }
 
 
-map_entries :: proc(m: $M/map[$K]$V, allocator := context.allocator) -> (entries: []Map_Entry(K, V), err: runtime.Allocator) {
+map_entries :: proc(m: $M/map[$K]$V, allocator := context.allocator) -> (entries: []Map_Entry(K, V), err: runtime.Allocator_Error) {
 	entries = make(type_of(entries), len(m), allocator) or_return
 	i := 0
 	for key, value in m {