summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorMichael New <mikenew12@gmail.com>2022-05-29 19:40:15 -0700
committerGitHub <noreply@github.com>2022-05-30 10:40:15 +0800
commit14960fa754f42c820727bed9308e075b2cb923f6 (patch)
treed88f757754dafeef6428857e67f9b08ddaeb508b /doc
parentd81edcacc6740a99b0360cf31ddc2f2a1626006c (diff)
downloadNim-14960fa754f42c820727bed9308e075b2cb923f6.tar.gz
Fix typo and incorrect pragma name (#19847)
Diffstat (limited to 'doc')
-rw-r--r--doc/manual_experimental_strictnotnil.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/manual_experimental_strictnotnil.rst b/doc/manual_experimental_strictnotnil.rst
index b14e5f9f3..ebfca7e51 100644
--- a/doc/manual_experimental_strictnotnil.rst
+++ b/doc/manual_experimental_strictnotnil.rst
@@ -172,7 +172,7 @@ We might need to check for `strictFuncs` pure funcs and not do that then.
 For field expressions `a.field`, we calculate an integer value based on a hash of the tree and just accept equivalent trees as equivalent expressions.
 
 For item expression `a[index]`, we also calculate an integer value based on a hash of the tree and accept equivalent trees as equivalent expressions: for static values only.
-For now we support only constant indices: we dont track expression with no-const indices. For those we just report a warning even if they are safe for now: one can use a local variable to workaround. For loops this might be annoying: so one should be able to turn off locally the warning using the `{.warning[StrictCheckNotNil]:off}.`.
+For now we support only constant indices: we dont track expression with no-const indices. For those we just report a warning even if they are safe for now: one can use a local variable to workaround. For loops this might be annoying: so one should be able to turn off locally the warning using the `{.warning[StrictNotNil]:off.}`.
 
 For bracket expressions, in the future we might count `a[<any>]` as the same general expression.
 This means we should should the index but otherwise handle it the same for assign (maybe "aliasing" all the non-static elements) and differentiate only for static: e.g. `a[0]` and `a[1]`.
324e015'>^
9387913b7 ^
627e192f6 ^
9387913b7 ^
db4f617af ^




053309e60 ^

a58a2f382 ^

db4f617af ^













300430fbb ^
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83