summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorSimon Hafner <hafnersimon@gmail.com>2014-02-03 12:40:51 -0600
committerSimon Hafner <hafnersimon@gmail.com>2014-02-03 12:40:51 -0600
commita90f0f50cf630a0fd565fd518e8fda4ff353977a (patch)
tree9abce3279ac2e3bcb67471edc4e237307a68952a /doc
parent96e616198d100f0e10337c0210b088730d66d91e (diff)
downloadNim-a90f0f50cf630a0fd565fd518e8fda4ff353977a.tar.gz
removed explicit return in the documentation
Diffstat (limited to 'doc')
-rw-r--r--doc/manual.txt2
-rw-r--r--doc/tut2.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/manual.txt b/doc/manual.txt
index da229d169..1c410d5a3 100644
--- a/doc/manual.txt
+++ b/doc/manual.txt
@@ -2498,7 +2498,7 @@ different; for this a special setter syntax is needed:
   
   proc host*(s: TSocket): int {.inline.} =
     ## getter of hostAddr
-    return s.FHost
+    s.FHost
 
   var
     s: TSocket
diff --git a/doc/tut2.txt b/doc/tut2.txt
index 581239cc7..d2ba8b8a9 100644
--- a/doc/tut2.txt
+++ b/doc/tut2.txt
@@ -126,7 +126,7 @@ The syntax for type conversions is ``destination_type(expression_to_convert)``
 
 .. code-block:: nimrod
   proc getID(x: TPerson): int =
-    return TStudent(x).id
+    TStudent(x).id
 
 The ``EInvalidObjectConversion`` exception is raised if ``x`` is not a
 ``TStudent``.