[Gd-chatter] r10951 - trunk/documentation/gwydion

hannes at gwydiondylan.org hannes at gwydiondylan.org
Mon Nov 13 17:32:44 CET 2006


Author: hannes
Date: Mon Nov 13 17:32:41 2006
New Revision: 10951

Modified:
   trunk/documentation/gwydion/tutorial.xml
Log:
Bug: minor
*fixed typos in tutorial, patch provided by Johannes Weiner (hnaz)
 via #dylan


Modified: trunk/documentation/gwydion/tutorial.xml
==============================================================================
--- trunk/documentation/gwydion/tutorial.xml	(original)
+++ trunk/documentation/gwydion/tutorial.xml	Mon Nov 13 17:32:41 2006
@@ -674,7 +674,7 @@
       <programlisting>
 define method sell(car :: &lt;car&gt;, new-owner :: &lt;string&gt;) =&gt; ();
   if (credit-check(new-owner))
-    car.owner = new-owner;
+    car.owner := new-owner;
   else
     error(&quot;Bad credit!&quot;);
   end;
@@ -793,7 +793,7 @@
       </para>
 
       <programlisting>
-define method build-put(string :: &lt;string&gt;) =&gt; &lt;function&gt;;
+define method build-put(string :: &lt;string&gt;) =&gt; (res :: &lt;function&gt;);
   local method string-putter()
           puts(string);
         end;
@@ -802,7 +802,7 @@
 
 define method print-hello() =&gt; ();
   let f = build-put(&quot;Hello!&quot;);
-  f();				// print &quot;Hello1&quot;
+  f();				// print &quot;Hello!&quot;
 end;
       </programlisting>
 



More information about the chatter mailing list