[svn:parrot] r39613 - trunk/docs/book/pir

allison at svn.parrot.org allison at svn.parrot.org
Wed Jun 17 05:46:49 UTC 2009


Author: allison
Date: Wed Jun 17 05:46:49 2009
New Revision: 39613
URL: https://trac.parrot.org/parrot/changeset/39613

Log:
[book] Fix failing example tests in chapter 9.

Modified:
   trunk/docs/book/pir/ch09_exceptions.pod

Modified: trunk/docs/book/pir/ch09_exceptions.pod
==============================================================================
--- trunk/docs/book/pir/ch09_exceptions.pod	Wed Jun 17 05:19:49 2009	(r39612)
+++ trunk/docs/book/pir/ch09_exceptions.pod	Wed Jun 17 05:46:49 2009	(r39613)
@@ -314,16 +314,16 @@
 contain information about the HLL's source code such as the current line number
 and file name.
 
-Create an annotation with the C<.annotation> keyword. Annotations consist of a
+Create an annotation with the C<.annotate> keyword. Annotations consist of a
 key/value pair, where the key is a string and the value is an integer, a
 number, or a string.  Bytecode stores annotations as constants in the compiled
 bytecode.  Consequently, you may not store PMCs.
 
 =begin PIR_FRAGMENT
 
-  .annotation 'file', 'mysource.lang'
-  .annotation 'line', 42
-  .annotation 'compiletime', 0.3456
+  .annotate 'file', 'mysource.lang'
+  .annotate 'line', 42
+  .annotate 'compiletime', 0.3456
 
 =end PIR_FRAGMENT
 
@@ -334,10 +334,10 @@
 
 =begin PIR_FRAGMENT
 
-  .annotation 'line', 1
+  .annotate 'line', 1
   $P0 = annotations # {'line' => 1}
 
-  .annotation 'line', 2
+  .annotate 'line', 2
   $P0 = annotations # {'line' => 2}
 
 =end PIR_FRAGMENT
@@ -346,7 +346,7 @@
 
 =begin PIR_FRAGMENT
 
-  $I0 = annotations 'line'
+  $P0 = annotations 'line'
 
 =end PIR_FRAGMENT
 


More information about the parrot-commits mailing list