restorable: Fix comments

This commit is contained in:
Hajime Hoshi 2019-07-17 02:42:26 +09:00
parent 4ee586b7a5
commit 2735f4eddc

View File

@ -305,8 +305,6 @@ func (i *Image) ClearPixels(x, y, width, height int) {
} }
// ReplacePixels replaces the image pixels with the given pixels slice. // ReplacePixels replaces the image pixels with the given pixels slice.
//
// If pixels is nil, ReplacePixels clears the specified reagion.
func (i *Image) ReplacePixels(pixels []byte, x, y, width, height int) { func (i *Image) ReplacePixels(pixels []byte, x, y, width, height int) {
if pixels == nil { if pixels == nil {
panic("restorable: pixels must not be nil") panic("restorable: pixels must not be nil")