Mercurial > octave-nkf
diff libinterp/octave-value/ov-oncleanup.cc @ 18537:f958e8cd6348
maint: Periodic merge of gui-release to default.
author | Rik <rik@octave.org> |
---|---|
date | Sat, 01 Mar 2014 22:11:32 -0800 |
parents | bcd71a2531d3 ea0d4dea1a17 |
children | 972abb60c30f |
line wrap: on
line diff
--- a/libinterp/octave-value/ov-oncleanup.cc Thu Feb 27 09:56:47 2014 -0800 +++ b/libinterp/octave-value/ov-oncleanup.cc Sat Mar 01 22:11:32 2014 -0800 @@ -187,10 +187,10 @@ DEFUN (onCleanup, args, , "-*- texinfo -*-\n\ -@deftypefn {Built-in Function} {@var{c} =} onCleanup (@var{action})\n\ +@deftypefn {Built-in Function} {@var{obj} =} onCleanup (@var{function})\n\ Create a special object that executes a given function upon destruction.\n\ If the object is copied to multiple variables (or cell or struct array\n\ -elements) or returned from a function, @var{action} will be executed after\n\ +elements) or returned from a function, @var{function} will be executed after\n\ clearing the last copy of the object. Note that if multiple local onCleanup\n\ variables are created, the order in which they are called is unspecified.\n\ For similar functionality @xref{The unwind_protect Statement}.\n\