From 42e80829c7de260b1c88032b1428ade59c4b18d0 Mon Sep 17 00:00:00 2001 From: Frank Schmitt Date: Sun, 17 May 2020 12:44:36 +0200 Subject: docs: fix syntax error in hotCodeReloading example (fixes #14380) (#14381) Co-authored-by: Frank Schmitt --- doc/hcr.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') 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() -- cgit 1.4.1-2-gfad0 'devel' selected='selected'>devel This repository contains the Nim compiler, Nim's stdlib, tools, and documentation. (mirror)ahoang <ahoang@tilde.institute>
summary refs log tree commit diff stats
blob: e8ff8a95271bfcdb25efbad993274477eb6032fe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47