diff options
author | Frank Schmitt <frank@qwhon.de> | 2020-05-17 12:44:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-17 12:44:36 +0200 |
commit | 42e80829c7de260b1c88032b1428ade59c4b18d0 (patch) | |
tree | 27553b6cac0495ec07aaa905ad479c6c5c41847f /doc | |
parent | 40ac19572a86b5bfa7b57cf0482ae3a30432176a (diff) | |
download | Nim-42e80829c7de260b1c88032b1428ade59c4b18d0.tar.gz |
docs: fix syntax error in hotCodeReloading example (fixes #14380) (#14381)
Co-authored-by: Frank Schmitt <frankschmitt@gmx.de>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/hcr.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/hcr.rst b/doc/hcr.rst index 9bf88f6ef..f6db0ddfd 100644 --- a/doc/hcr.rst +++ b/doc/hcr.rst @@ -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() |