[svn:parrot] r41693 - trunk/docs/book/pir
rblasch at svn.parrot.org
rblasch at svn.parrot.org
Sun Oct 4 14:12:50 UTC 2009
Author: rblasch
Date: Sun Oct 4 14:12:49 2009
New Revision: 41693
URL: https://trac.parrot.org/parrot/changeset/41693
Log:
[book] Fixed typos.
Modified:
trunk/docs/book/pir/ch09_exceptions.pod
Modified: trunk/docs/book/pir/ch09_exceptions.pod
==============================================================================
--- trunk/docs/book/pir/ch09_exceptions.pod Sun Oct 4 14:12:14 2009 (r41692)
+++ trunk/docs/book/pir/ch09_exceptions.pod Sun Oct 4 14:12:49 2009 (r41693)
@@ -108,14 +108,14 @@
=end PIR_FRAGMENT
-This example creates an exception handler C<my_handler> and then runs a a
+This example creates an exception handler C<my_handler> and then runs a
division operation that will throw a "division by zero" exception if C<$I2> is
0. When C<$I2> is 0, C<div> throws an exception. The exception handler catches
it, prints "caught an exception", and then clears itself with C<pop_eh>. When
C<$I2> is a non-zero value, there is no exception. The code clears the
exception handler with C<pop_eh>, then prints "maybe printed". The C<goto>
skips over the code of the exception handler, as it's just a labeled unit of
-code within the subruotine.
+code within the subroutine.
The exception object provides access to various attributes of the
exception for additional information about what kind of error it was,
More information about the parrot-commits
mailing list