Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify that Approve and Reject always exit #660

Merged
merged 4 commits into from Feb 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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