diff options
author | gavr123456789 <30507409+gavr123456789@users.noreply.github.com> | 2021-05-12 14:20:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-12 19:20:57 +0800 |
commit | f533ed07bde1d7210d2e9c6bd10275289341cd26 (patch) | |
tree | e441513859da3f577b74a58169103c3986fadeb3 /doc/hcr.rst | |
parent | 39ad9a69a9473aa88d4457039393f6ed15fafcfa (diff) | |
download | Nim-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.rst | 2 |
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() |