Mercurial > octave
changeset 32953:98b34c7f7d73 stable
Correct whitespace for end docstring, remove doc location comment (bug #59737)
* libinterp/parse-tree/pt-eval.cc (end): Remove comment before end keyword
pointing to definition in op-kw-doc. Remove whitespace before texinfo
kewords in end example.
author | Nicholas R. Jankowski <jankowski.nicholas@gmail.com> |
---|---|
date | Wed, 07 Feb 2024 10:47:31 -0500 |
parents | ce0977d1f10c |
children | 5bd598c813ca 489aead3a0f5 |
files | libinterp/parse-tree/pt-eval.cc |
diffstat | 1 files changed, 11 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/parse-tree/pt-eval.cc Wed Feb 07 17:15:50 2024 +0100 +++ b/libinterp/parse-tree/pt-eval.cc Wed Feb 07 10:47:31 2024 -0500 @@ -2256,7 +2256,6 @@ } } -// END is documented in op-kw-docs. DEFMETHOD (end, interp, args, , doc: /* -*- texinfo -*- @deftypefn {} {} end @@ -2290,17 +2289,17 @@ @item For custom classes, to enable use of @code{end} in indexing expressions it must be overloaded with a function definition such as: - @example - @group - function last_index = end (obj, end_dim, ndim_obj) - if (end_dim == ndim_obj) - last_index = prod (size (obj)(end_dim:ndim_obj)); - else - last_index = size (obj, end_dim); - endif - endfunction - @end group - @end example +@example +@group +function last_index = end (obj, end_dim, ndim_obj) + if (end_dim == ndim_obj) + last_index = prod (size (obj)(end_dim:ndim_obj)); + else + last_index = size (obj, end_dim); + endif +endfunction +@end group +@end example For more information see @ref{Object Oriented Programming, , Object Oriented Programming}. @end enumerate