manual: fix broken sentence

This commit is contained in:
narimiran 2019-02-19 09:07:25 +01:00
commit 83f5839e2c

View file

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