Fix typo err: runtime.Allocator to Allocator_Error

This commit is contained in:
André (counter)
2022-12-09 19:20:03 +01:00
committed by GitHub
parent ffe953b43d
commit 7fbee88061
+1 -1
View File
@@ -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 {