docs: fix syntax error in hotCodeReloading example (fixes #14380) (#14381)

Co-authored-by: Frank Schmitt <frankschmitt@gmx.de>
This commit is contained in:
Frank Schmitt
2020-05-17 12:44:36 +02:00
committed by GitHub
parent 40ac19572a
commit 42e80829c7

View File

@@ -76,7 +76,7 @@ To install SDL2 you can use ``nimble install sdl2``.
discard renderer.clear()
discard renderer.setDrawColor(255, 128, 128, 0)
var rect: Rect = (x: posX - 25, y: posY - 25, w: 50.cint, h: 50.cint)
var rect = Rect(x: posX - 25, y: posY - 25, w: 50.cint, h: 50.cint)
discard renderer.fillRect(rect)
delay(16)
renderer.present()