builtin: make map.keys() public

pull/12388/head
Alexander Medvednikov 2021-11-04 19:09:37 +03:00
parent ace9444108
commit 7ea57bfa1e
1 changed files with 1 additions and 1 deletions

View File

@ -602,7 +602,7 @@ pub fn (mut m map) delete(key voidptr) {
}
// Returns all keys in the map.
fn (m &map) keys() array {
pub fn (m &map) keys() array {
mut keys := __new_array(m.len, 0, m.key_bytes)
mut item := unsafe { &byte(keys.data) }
if m.key_values.deletes == 0 {