Hacker News new | ask | show | jobs
by nalgeon 864 days ago
They are correct.

> Functions that shrink the size of a slice (Delete, DeleteFunc, Compact, CompactFunc, and Replace) now zero the elements between the new length and the old length.