From 7ca450ea3a7307d0e39670a642ab14aeff1a2e75 Mon Sep 17 00:00:00 2001 From: Andrey Khmuro Date: Mon, 30 Oct 2023 22:15:08 +0100 Subject: [PATCH] docs: improve documentation, update changelog --- CHANGELOG.md | 1 + docs/src/user_docs/assembly/flow_control.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e616aa4a7d..0b176176a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - Expanded capabilities of the `debug` decorator. Added `debug.mem` and `debug.local` variations (#1103). - Introduced the `emit.` assembly instruction (#1119). - Introduced the `procref.` assembly instruction (#1113). +- Added the ability to use constants as counters in `repeat` loops (#1124). #### Stdlib - Introduced `std::utils` module with `is_empty_word` procedure. Refactored `std::collections::smt` diff --git a/docs/src/user_docs/assembly/flow_control.md b/docs/src/user_docs/assembly/flow_control.md index 76e7622a70..74f134c15b 100644 --- a/docs/src/user_docs/assembly/flow_control.md +++ b/docs/src/user_docs/assembly/flow_control.md @@ -33,7 +33,7 @@ end where: * `instructions` can be a sequence of any instructions, including nested control structures. -* `count` is the number of times the `instructions` sequence should be repeated (e.g. `repeat.10`). `count` must be an integer or a constant greater than $0$. +* `count` is the number of times the `instructions` sequence should be repeated (e.g. `repeat.10`). `count` must be an integer or a [constant](./code_organization.md#constants) greater than $0$. > **Note**: During compilation the `repeat.` blocks are unrolled and expanded into `` copies of its inner block, there is no additional cost for counting variables in this case.