use more .} (#18542)
This commit is contained in:
parent
6286b5599c
commit
dbf8d0b894
5 changed files with 9 additions and 9 deletions
|
|
@ -474,13 +474,13 @@ Not nil annotation
|
|||
==================
|
||||
|
||||
**Note:** This is an experimental feature. It can be enabled with
|
||||
`{.experimental: "notnil"}`.
|
||||
`{.experimental: "notnil".}`.
|
||||
|
||||
All types for which `nil` is a valid value can be annotated with the
|
||||
`not nil` annotation to exclude `nil` as a valid value:
|
||||
|
||||
.. code-block:: nim
|
||||
{.experimental: "notnil"}
|
||||
{.experimental: "notnil".}
|
||||
|
||||
type
|
||||
PObject = ref TObj not nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue