# HG changeset patch # User John W. Eaton # Date 1232466754 18000 # Node ID ef2dfe33e5b583613e0b90d90d64820d0f884141 # Parent d2cf983bdc9d93b9acd5b66bcace786be4811865 stmt.txi: unwind_protect doc fix diff --git a/doc/interpreter/stmt.txi b/doc/interpreter/stmt.txi --- a/doc/interpreter/stmt.txi +++ b/doc/interpreter/stmt.txi @@ -782,7 +782,8 @@ This is useful to protect temporary changes to global variables from possible errors. For example, the following code will always restore the original value of the global variable @code{frobnositcate} -even if an error occurs while performing the indexing operation. +even if an error occurs in the first part of the @code{unwind_protect} +block. @example @group @@ -798,9 +799,10 @@ @noindent Without @code{unwind_protect}, the value of @var{frobnosticate} -would not be restored if an error occurs while performing the indexing -operation because evaluation would stop at the point of the error and -the statement to restore the value would not be executed. +would not be restored if an error occurs while evaluating the first part +of the @code{unwind_protect} block because evaluation would stop at the +point of the error and the statement to restore the value would not be +executed. @node The try Statement @section The @code{try} Statement