diff options
| author | faiface <faiface2202@gmail.com> | 2019-05-06 19:17:15 +0200 |
|---|---|---|
| committer | faiface <faiface2202@gmail.com> | 2019-05-06 19:17:15 +0200 |
| commit | 87de7bd7433abf1ab8380e09fde5892074934c7f (patch) | |
| tree | e0cd4ad1f052ac7dd8691da646648986c34d899f | |
| parent | f5440dd2956919caf89701dd226e31fb8bc035f5 (diff) | |
| download | gui-87de7bd7433abf1ab8380e09fde5892074934c7f.zip | |
README: better word
| -rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: |