# HG changeset patch # User Nicholas R. Jankowski # Date 1706925275 18000 # Node ID 399bdb5b3b4885321eaaec39769fb5a79568eb75 # Parent a3e2bd8d5a784590e761bd4ab442f25abd680619# Parent 6fba256defcb00dc01d49f41479aed88a4270af7 maint: Merge stable to default. diff -r a3e2bd8d5a78 -r 399bdb5b3b48 libinterp/octave-value/ov.cc --- a/libinterp/octave-value/ov.cc Fri Feb 02 11:38:43 2024 -0800 +++ b/libinterp/octave-value/ov.cc Fri Feb 02 20:54:35 2024 -0500 @@ -3702,6 +3702,9 @@ If @var{idx} is an empty structure array with fields @samp{type} and @samp{subs}, return @var{val}. + +The keyword @code{end} cannot be used within @code{subsref} for indexing +assignments. @seealso{subsasgn, substruct} @end deftypefn */) { @@ -3751,6 +3754,9 @@ If @var{idx} is an empty structure array with fields @samp{type} and @samp{subs}, return @var{rhs}. + +The keyword @code{end} cannot be used within @code{subsasgn} for indexing +assignments. @seealso{subsref, substruct, optimize_subsasgn_calls} @end deftypefn */) { diff -r a3e2bd8d5a78 -r 399bdb5b3b48 scripts/miscellaneous/substruct.m --- a/scripts/miscellaneous/substruct.m Fri Feb 02 11:38:43 2024 -0800 +++ b/scripts/miscellaneous/substruct.m Fri Feb 02 20:54:35 2024 -0500 @@ -47,6 +47,9 @@ ## @result{} 7 8 9 ## @end group ## @end example +## +## Note: The keyword @code{end} cannot be used within @code{subsref} or +## @code{subsasgn} for indexing assignments. ## @seealso{subsref, subsasgn} ## @end deftypefn