1
0
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:
Ethan Hansen 2023-06-15 23:45:16 -07:00 committed by GitHub
parent 06583be9ec
commit 5001b17336
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -286,6 +286,9 @@ fn new_map_init(hash_fn MapHashFn, key_eq_fn MapEqFn, clone_fn MapCloneFn, free_
return out 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 { pub fn (mut m map) move() map {
r := *m r := *m
unsafe { unsafe {