From bc29a6a355626552b981ab640f4c3347bfd615bc Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Wed, 22 Feb 2017 23:25:17 +0900 Subject: [PATCH] doc: Add explanation of errors from Run (#327) --- run.go | 1 + 1 file changed, 1 insertion(+) diff --git a/run.go b/run.go index 2169420a6..910f8aad4 100644 --- a/run.go +++ b/run.go @@ -69,6 +69,7 @@ var theGraphicsContext atomic.Value // The given function f is guaranteed to be called 60 times a second // even if a rendering frame is skipped. // f is not called when the screen is not shown. +// If f returns error, this function returns the same error. // // The size unit is device-independent pixel. func Run(f func(*Image) error, width, height int, scale float64, title string) error {