manual: fix broken sentence
This commit is contained in:
parent
7b68da9bf1
commit
83f5839e2c
1 changed files with 7 additions and 8 deletions
|
|
@ -1,18 +1,17 @@
|
||||||
The set type models the mathematical notion of a set. The set's basetype can
|
The set type models the mathematical notion of a set. The set's basetype can
|
||||||
only be an ordinal type of a certain size, namely:
|
only be an ordinal type of a certain size, namely:
|
||||||
|
|
||||||
* ``int8``-``int16``
|
* ``int8``-``int16``
|
||||||
* ``uint8``/``byte``-``uint16``
|
* ``uint8``/``byte``-``uint16``
|
||||||
* ``char``
|
* ``char``
|
||||||
* ``enum``
|
* ``enum``
|
||||||
|
|
||||||
For signed integers the set's base type is defined to be in the
|
or equivalent. For signed integers the set's base type is defined to be in the
|
||||||
range ``0 .. MaxSetElements-1`` where ``MaxSetElements`` is currently always
|
range ``0 .. MaxSetElements-1`` where ``MaxSetElements`` is currently always
|
||||||
2^16.
|
2^16.
|
||||||
|
|
||||||
or equivalent. The reason is that sets are implemented as high
|
The reason is that sets are implemented as high performance bit vectors.
|
||||||
performance bit vectors. Attempting to declare a set with a larger type will
|
Attempting to declare a set with a larger type will result in an error:
|
||||||
result in an error:
|
|
||||||
|
|
||||||
.. code-block:: nim
|
.. code-block:: nim
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue