From ad823ae8ebab2ab262ab8fb649ca7eff5e09a8d3 Mon Sep 17 00:00:00 2001 From: damirka Date: Mon, 28 Jun 2021 20:37:25 +0300 Subject: [PATCH] count down to countdown --- docs/rfc/005-countdown-loops.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/rfc/005-countdown-loops.md b/docs/rfc/005-countdown-loops.md index 3ec712b604..aa9fae4c84 100644 --- a/docs/rfc/005-countdown-loops.md +++ b/docs/rfc/005-countdown-loops.md @@ -23,7 +23,7 @@ This proposal suggests adding countdown loops and inclusive loop ranges into Leo In the current design of the language only incremental ranges are allowed. Though in some cases there's a need for loops going in reverse direction. This example -demonstrates bubble sort algorithm where count down loops are mocked: +demonstrates bubble sort algorithm where countdown loops are mocked: ```ts function bubble_sort(mut a: [u32; 10]) -> [u32; 10] { @@ -40,7 +40,7 @@ function bubble_sort(mut a: [u32; 10]) -> [u32; 10] { } ``` -Having count down loop in the example above could improve readability and +Having countdown loop in the example above could improve readability and usability of the language by making it more natural to the developer. However, if we imagined this example using countdown loop, we would see that