compiler/ast.nim: fix a typo (#23340)

constains -> constrains

---------

Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com>
This commit is contained in:
litlighilit
2024-02-23 20:11:27 +08:00
committed by GitHub
parent 09580eeec9
commit 248bdb276a

View File

@@ -553,7 +553,7 @@ type
tfIterator, # type is really an iterator, not a tyProc
tfPartial, # type is declared as 'partial'
tfNotNil, # type cannot be 'nil'
tfRequiresInit, # type constains a "not nil" constraint somewhere or
tfRequiresInit, # type contains a "not nil" constraint somewhere or
# a `requiresInit` field, so the default zero init
# is not appropriate
tfNeedsFullInit, # object type marked with {.requiresInit.}