Skip to content

Commit

Permalink
Update example code in README to note the difference of event type sw…
Browse files Browse the repository at this point in the history
…itch case between `master` and `v0.4.x`

Signed-off-by: Lilis Iskandar <[email protected]>
  • Loading branch information
veeableful committed Feb 29, 2024
1 parent 9e722e4 commit 40fbe49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func main() {
for running {
for event := sdl.PollEvent(); event != nil; event = sdl.PollEvent() {
switch event.(type) {
case sdl.QuitEvent:
case sdl.QuitEvent: # NOTE: Please use `*sdl.QuitEvent` for `v0.4.x` (current version).
println("Quit")
running = false
break
Expand Down

0 comments on commit 40fbe49

Please sign in to comment.