diff options
Diffstat (limited to 'doc/manual_experimental.rst')
-rw-r--r-- | doc/manual_experimental.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/manual_experimental.rst b/doc/manual_experimental.rst index e0f4831d6..8c61c1217 100644 --- a/doc/manual_experimental.rst +++ b/doc/manual_experimental.rst @@ -27,7 +27,7 @@ Package level objects Every Nim module resides in a (nimble) package. An object type can be attached to the package it resides in. If that is done, the type can be referenced from other modules as an `incomplete`:idx: object type. This feature allows to -break up recursive type dependencies accross module boundaries. Incomplete +break up recursive type dependencies across module boundaries. Incomplete object types are always passed ``byref`` and can only be used in pointer like contexts (``var/ref/ptr IncompleteObject``) in general since the compiler does not yet know the size of the object. To complete an incomplete object @@ -267,7 +267,7 @@ calls can use the ``do`` keyword: ``do`` is written after the parentheses enclosing the regular proc params. The proc expression represented by the do block is appended to them. In calls using the command syntax, the do block will bind to the immediately -preceeding expression, transforming it in a call. +preceding expression, transforming it in a call. ``do`` with parentheses is an anonymous ``proc``; however a ``do`` without parentheses is just a block of code. The ``do`` notation can be used to @@ -1618,7 +1618,7 @@ Aliasing restrictions in parameter passing ========================================== **Note**: The aliasing restrictions are currently not enforced by the -implementation and need to be fleshed out futher. +implementation and need to be fleshed out further. "Aliasing" here means that the underlying storage locations overlap in memory at runtime. An "output parameter" is a parameter of type ``var T``, an input |