diff --git a/internal/atlas/image.go b/internal/atlas/image.go index b753e3603..0d2147d3a 100644 --- a/internal/atlas/image.go +++ b/internal/atlas/image.go @@ -193,6 +193,10 @@ type Image struct { isolatedCount int } +// moveTo moves its content to the given image dst. +// After moveTo is called, the image i is no longer available. +// +// moveTo is smilar to C++'s move semantics. func (i *Image) moveTo(dst *Image) { dst.dispose(false) *dst = *i