# HG changeset patch # User Nicholas R. Jankowski # Date 1658518229 14400 # Node ID 44b9673c7b8daa1693ef783c0fd28c1400a7c011 # Parent 07e52e612ea28e372647611791411c37875517a2 correct subsasgn docstring example code (bug #33221) * libinterp/octave-value/ov.cc (subsasgn): add LHS variable to example code in docstring reconcile example result with the following one-line command. diff -r 07e52e612ea2 -r 44b9673c7b8d libinterp/octave-value/ov.cc --- a/libinterp/octave-value/ov.cc Mon Jul 18 17:29:32 2022 +0200 +++ b/libinterp/octave-value/ov.cc Fri Jul 22 15:30:29 2022 -0400 @@ -3871,7 +3871,7 @@ val = magic (3); idx.type = "()"; idx.subs = @{":", 1:2@}; -subsasgn (val, idx, 0) +val = subsasgn (val, idx, 0) @result{} [ 0 0 6 0 0 7 0 0 2 ]