internal/restorable: typo

This commit is contained in:
Hajime Hoshi 2024-09-08 17:06:25 +09:00
parent 9ef9ea0469
commit 26f0479f16

View File

@ -167,7 +167,7 @@ func (i *images) resolveStaleImages(graphicsDriver graphicsdriver.Graphics) erro
// makeStaleIfDependingOn makes all the images stale that depend on src.
//
// When src is modified, all images depending on src can't be restored with src.
// makeStaleIfDependingOn is called in such situation.src.
// makeStaleIfDependingOn is called in such situation.
func (i *images) makeStaleIfDependingOn(src *Image) {
if src == nil {
panic("restorable: src must not be nil at makeStaleIfDependingOn")