summary refs log tree commit diff stats
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
parentd81edcacc6740a99b0360cf31ddc2f2a1626006c (diff)
downloadNim-14960fa754f42c820727bed9308e075b2cb923f6.tar.gz
Fix typo and incorrect pragma name (#19847)
-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]`.