summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorMice Pápai <knockoutMice@users.noreply.github.com>2017-05-13 21:52:19 +0200
committerAndreas Rumpf <rumpf_a@web.de>2017-05-13 21:52:19 +0200
commitf5717490d9498f6399ca15a90e9ecf60488ae80f (patch)
tree52333c16c424eca63089b18242bc43ad1ec183d1 /doc
parent40e9e751f0e77211442707820b4737a253334a4f (diff)
downloadNim-f5717490d9498f6399ca15a90e9ecf60488ae80f.tar.gz
tut1.rst: Fix alignment, Change Subrange to MySubrange for clarity (#5798)
* tut1.rst: Fix alignment

* tut1.rst: Change Subrange to MySubrange for clarity
Diffstat (limited to 'doc')
-rw-r--r--doc/tut1.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/tut1.rst b/doc/tut1.rst
index de89a0b2d..436b3880d 100644
--- a/doc/tut1.rst
+++ b/doc/tut1.rst
@@ -1074,8 +1074,8 @@ at runtime by 0, the second by 1 and so on. For example:
     Direction = enum
       north, east, south, west
 
-  var x = south      # `x` is of type `Direction`; its value is `south`
-  echo x           # writes "south" to `stdout`
+  var x = south     # `x` is of type `Direction`; its value is `south`
+  echo x            # writes "south" to `stdout`
 
 All the comparison operators can be used with enumeration types.
 
@@ -1132,11 +1132,11 @@ A subrange type is a range of values from an integer or enumeration type
 
 .. code-block:: nim
   type
-    Subrange = range[0..5]
+    MySubrange = range[0..5]
 
 
-``Subrange`` is a subrange of ``int`` which can only hold the values 0
-to 5. Assigning any other value to a variable of type ``Subrange`` is a
+``MySubrange`` is a subrange of ``int`` which can only hold the values 0
+to 5. Assigning any other value to a variable of type ``MySubrange`` is a
 compile-time or runtime error. Assignments from the base type to one of its
 subrange types (and vice versa) are allowed.