Author: lwall
Date: 2009-03-05 20:00:13 +0100 (Thu, 05 Mar 2009)
New Revision: 25711

Modified:
   docs/Perl6/Spec/S12-objects.pod
Log:
fix declaration syntax of private methods


Modified: docs/Perl6/Spec/S12-objects.pod
===================================================================
--- docs/Perl6/Spec/S12-objects.pod     2009-03-05 18:03:31 UTC (rev 25710)
+++ docs/Perl6/Spec/S12-objects.pod     2009-03-05 19:00:13 UTC (rev 25711)
@@ -12,9 +12,9 @@
 
   Maintainer: Larry Wall <la...@wall.org>
   Date: 27 Oct 2004
-  Last Modified: 4 Mar 2009
+  Last Modified: 5 Mar 2009
   Number: 12
-  Version: 73
+  Version: 74
 
 =head1 Overview
 
@@ -206,9 +206,9 @@
     any(@(self))  # okay
     any(@self)    # WRONG unless you declared @self yourself
 
-Private methods are declared using C<my>:
+Private methods are declared using C<!>:
 
-    my method think (Brain $self: $thought)
+    method !think (Brain $self: $thought)
 
 (Such methods are completely invisible to ordinary method calls, and are
 in fact called with a different syntax that uses C<!> in place of the C<.>

Reply via email to