Skip to content

Commit

Permalink
Clarify that Approve and Reject always exit (#660)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabrice102 committed Feb 23, 2023
1 parent d29bbaf commit 1973ded
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,8 @@

## Added

* Clarify that `Approve` and `Reject` always exit in the documentation.

## Fixed

## Changed
Expand Down
3 changes: 2 additions & 1 deletion docs/control_structures.rst
Expand Up @@ -19,7 +19,8 @@ The :any:`Approve` and :any:`Reject` expressions cause the program to immediatel
is used, then the execution is marked as successful, and if :code:`Reject` is used, then the execution
is marked as unsuccessful.

These expressions also work inside :ref:`subroutines <subroutine_expr>`.
These expressions also work inside :ref:`subroutines <subroutine_expr>`. When used inside subroutines, they
also cause the program to immediately exit, contrary to :code:`Return(...)` which just returns from the subroutine.

.. _seq_expr:

Expand Down

0 comments on commit 1973ded

Please sign in to comment.