summary refs log tree commit diff stats
path: root/doc/hcr.rst
diff options
context:
space:
mode:
authorgavr123456789 <30507409+gavr123456789@users.noreply.github.com>2021-05-12 14:20:57 +0300
committerGitHub <noreply@github.com>2021-05-12 19:20:57 +0800
commitf533ed07bde1d7210d2e9c6bd10275289341cd26 (patch)
treee441513859da3f577b74a58169103c3986fadeb3 /doc/hcr.rst
parent39ad9a69a9473aa88d4457039393f6ed15fafcfa (diff)
downloadNim-f533ed07bde1d7210d2e9c6bd10275289341cd26.tar.gz
docs: fix syntax error in hotCodeReloading example (#17999)
#17998

Co-authored-by: g.maksutenko <g.maksutenko@indevstudio.com>
Diffstat (limited to 'doc/hcr.rst')
-rw-r--r--doc/hcr.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/hcr.rst b/doc/hcr.rst
index fd4ba34d4..574c4f39d 100644
--- a/doc/hcr.rst
+++ b/doc/hcr.rst
@@ -78,7 +78,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()