mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
docs: add docstring for map.move() (#18430)
This commit is contained in:
parent
06583be9ec
commit
5001b17336
@ -286,6 +286,9 @@ fn new_map_init(hash_fn MapHashFn, key_eq_fn MapEqFn, clone_fn MapCloneFn, free_
|
||||
return out
|
||||
}
|
||||
|
||||
// move moves the map to a new location in memory.
|
||||
// It does this by copying to a new location, then setting the
|
||||
// old location to all `0` with `vmemset`
|
||||
pub fn (mut m map) move() map {
|
||||
r := *m
|
||||
unsafe {
|
||||
|
Loading…
Reference in New Issue
Block a user