summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@googlemail.com>2015-06-18 22:44:33 +0100
committerDominik Picheta <dominikpicheta@googlemail.com>2015-06-18 22:44:33 +0100
commitd7e680331c08a5bcd178f0f2184377cfa940e4a6 (patch)
treebe52fceef87439928204a81a6048551f82519b5c
parent30451746ca7534b0334c5d27f589db910bba8557 (diff)
parent7bdbfb766363472a62a05c54de5e983f12c130bd (diff)
downloadNim-d7e680331c08a5bcd178f0f2184377cfa940e4a6.tar.gz
Merge pull request #2959 from rafaelx/patch-1
Update tut2.txt
-rw-r--r--doc/tut2.txt12
1 files changed, 5 insertions, 7 deletions
diff --git a/doc/tut2.txt b/doc/tut2.txt
index e1ac20074..966423844 100644
--- a/doc/tut2.txt
+++ b/doc/tut2.txt
@@ -233,17 +233,15 @@ is needed:
 
   type
     Socket* = ref object of RootObj
-      FHost: int # cannot be accessed from the outside of the module
-                 # the `F` prefix is a convention to avoid clashes since
-                 # the accessors are named `host`
+      host: int # cannot be accessed from the outside of the module due to missing star
 
   proc `host=`*(s: var Socket, value: int) {.inline.} =
-    ## setter of hostAddr
-    s.FHost = value
+    ## setter of host address
+    s.host = value
 
   proc host*(s: Socket): int {.inline.} =
-    ## getter of hostAddr
-    s.FHost
+    ## getter of host address
+    s.host
 
   var s: Socket
   new s