Minor Fixes to Manual Wording (#10214)
This commit is contained in:
parent
4a720394bb
commit
f3bd3691e7
1 changed files with 3 additions and 3 deletions
|
|
@ -1587,7 +1587,7 @@ details like this when mixing garbage collected data with unmanaged memory.
|
||||||
Not nil annotation
|
Not nil annotation
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
All types for that ``nil`` is a valid value can be annotated to
|
All types for which ``nil`` is a valid value can be annotated to
|
||||||
exclude ``nil`` as a valid value with the ``not nil`` annotation:
|
exclude ``nil`` as a valid value with the ``not nil`` annotation:
|
||||||
|
|
||||||
.. code-block:: nim
|
.. code-block:: nim
|
||||||
|
|
@ -1664,12 +1664,12 @@ Nim supports these `calling conventions`:idx:\:
|
||||||
and another one for the pointer to implicitly passed environment.
|
and another one for the pointer to implicitly passed environment.
|
||||||
|
|
||||||
`stdcall`:idx:
|
`stdcall`:idx:
|
||||||
This the stdcall convention as specified by Microsoft. The generated C
|
This is the stdcall convention as specified by Microsoft. The generated C
|
||||||
procedure is declared with the ``__stdcall`` keyword.
|
procedure is declared with the ``__stdcall`` keyword.
|
||||||
|
|
||||||
`cdecl`:idx:
|
`cdecl`:idx:
|
||||||
The cdecl convention means that a procedure shall use the same convention
|
The cdecl convention means that a procedure shall use the same convention
|
||||||
as the C compiler. Under windows the generated C procedure is declared with
|
as the C compiler. Under Windows the generated C procedure is declared with
|
||||||
the ``__cdecl`` keyword.
|
the ``__cdecl`` keyword.
|
||||||
|
|
||||||
`safecall`:idx:
|
`safecall`:idx:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue