changeset 30687:97989152bfbe

maint: merge stable to default.
author Rik <rik@octave.org>
date Sat, 29 Jan 2022 16:24:40 -0800
parents c6c9602a1414 (current diff) bca7aebe3e2d (diff)
children d1fe2cb16d95
files
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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