From 87de7bd7433abf1ab8380e09fde5892074934c7f Mon Sep 17 00:00:00 2001 From: faiface Date: Mon, 6 May 2019 19:17:15 +0200 Subject: README: better word --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 192123f..e273568 100644 --- a/README.md +++ b/README.md @@ -325,7 +325,7 @@ env.Draw() <- func(drw draw.Image) image.Rectangle { The code above has a danger of a race condition. The code that changes the `pressed` variable and the code that uses it may run concurrently. -**My advice is to never enclose an outer variable in a drawing function.** +**My advice is to never enclose a shared variable in a drawing function.** Instead, you can do this: -- cgit v1.2.3