use more .} (#18542)

This commit is contained in:
flywind 2021-07-20 20:12:15 +08:00 • committed by GitHub
commit dbf8d0b894
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 9 deletions

View file

@ -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