# HG changeset patch # User Rik # Date 1643502280 28800 # Node ID 97989152bfbec59d836a554ac26db276a3c934bf # Parent c6c9602a141441e8d9bae1e5dd0903aa4d242cea# Parent bca7aebe3e2ddd849d5c53f8ce8f039bdf3a593d maint: merge stable to default. diff -r c6c9602a1414 -r 97989152bfbe libinterp/op-kw-docs --- a/libinterp/op-kw-docs Fri Jan 28 19:13:47 2022 +0100 +++ b/libinterp/op-kw-docs Sat Jan 29 16:24:40 2022 -0800 @@ -765,7 +765,14 @@ @c libinterp/parse-tree/oct-parse.yy -*- texinfo -*- @deftypefn {} {} return -Return from a function. +Return execution control immediately from a function or script to the calling +code. + +@code{return} is used to stop executing code and exit an m-file immediately +rather than continuing until the end of the function or script is reached. + +If the function or script was invoked directly, rather than from calling code +in an m-file, then Octave returns to the command line. @seealso{function} @end deftypefn spmd