diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2022-12-08 10:06:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-08 10:06:48 +0800 |
commit | 4da3ead2948f5b3918a09f9c6ceba3db1225479d (patch) | |
tree | 3bb22f6fba1323db970b4e386684f2738d4b888b /doc | |
parent | 53fbb497e95b535172628cc60176845d0e458e94 (diff) | |
download | Nim-4da3ead2948f5b3918a09f9c6ceba3db1225479d.tar.gz |
fixes `strictnotnil` documentation; comment unfinished sections (#21041)
fixes documentation; comment unfinished sections
Diffstat (limited to 'doc')
-rw-r--r-- | doc/manual_experimental_strictnotnil.md | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/doc/manual_experimental_strictnotnil.md b/doc/manual_experimental_strictnotnil.md index b6d8e796e..a6fa6cda8 100644 --- a/doc/manual_experimental_strictnotnil.md +++ b/doc/manual_experimental_strictnotnil.md @@ -74,7 +74,9 @@ local turn on/off --------------------- You can still turn off nil checking on function/module level by using a `{.strictNotNil: off.}` pragma. -Note: test that/TODO for code/manual. + +.. + Note: test that/TODO for code/manual. nilability state ----------------- @@ -101,7 +103,8 @@ Types are either nilable or non-nilable. When you pass a param or a default value, we use the type : for nilable types we return `MaybeNil` and for non-nilable `Safe`. -TODO: fix the manual here. (This is not great, as default values for non-nilables and nilables are usually actually `nil` , so we should think a bit more about this section.) +.. + TODO: fix the manual here. (This is not great, as default values for non-nilables and nilables are usually actually `nil` , so we should think a bit more about this section.) params rules ------------ @@ -236,11 +239,11 @@ e.g. left = nil # moving out ``` +.. + initialization of non nilable and nilable values + ------------------------------------------------- -initialization of non nilable and nilable values -------------------------------------------------- - -TODO + TODO warnings and errors --------------------- |