Tut 1: tiny improvements

This commit is contained in:
Andreas Rumpf 2018-02-05 21:13:18 +01:00
commit fc52dd6463
2 changed files with 3 additions and 1 deletions

View file

@ -1,9 +1,11 @@
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``
or equivalent. The reason is that sets are implemented as high or equivalent. The reason is that sets are implemented as high
performance bit vectors. Attempting to declare a set with a larger type will performance bit vectors. Attempting to declare a set with a larger type will
result in an error: result in an error:

View file

@ -1032,7 +1032,7 @@ procs for these conversions.
Type Conversion Type Conversion
--------------- ---------------
Conversion between basic types is performed by using the Conversion between numerical types is performed by using the
type as a function: type as a function:
.. code-block:: nim .. code-block:: nim