From fc52dd646385b5b1ca5dc7c451c124a863047b14 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Mon, 5 Feb 2018 21:13:18 +0100 Subject: [PATCH] Tut 1: tiny improvements --- doc/sets_fragment.txt | 2 ++ doc/tut1.rst | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/sets_fragment.txt b/doc/sets_fragment.txt index 435807e1ab..5c341b7c82 100644 --- a/doc/sets_fragment.txt +++ b/doc/sets_fragment.txt @@ -1,9 +1,11 @@ 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: + * ``int8``-``int16`` * ``uint8``/``byte``-``uint16`` * ``char`` * ``enum`` + or equivalent. The reason is that sets are implemented as high performance bit vectors. Attempting to declare a set with a larger type will result in an error: diff --git a/doc/tut1.rst b/doc/tut1.rst index f935e79354..cbfef183ec 100644 --- a/doc/tut1.rst +++ b/doc/tut1.rst @@ -1032,7 +1032,7 @@ procs for these conversions. Type Conversion --------------- -Conversion between basic types is performed by using the +Conversion between numerical types is performed by using the type as a function: .. code-block:: nim