From add7a47ddefdd1a70b1876d1844b95d5640e7f4f Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Wed, 24 Aug 2022 16:08:07 +0000 Subject: [PATCH] Update 'Control Flow' --- Control-Flow.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Control-Flow.md b/Control-Flow.md index d699d49..9385e7d 100644 --- a/Control-Flow.md +++ b/Control-Flow.md @@ -1,4 +1,4 @@ -ARF has a collection of basic control flow phrases which are `break`, `next`, +ARF has a collection of basic control flow [phrases](Phrases) which are `break`, `next`, and `return`. Break breaks out of a loop or switch case, next is basically just a continue statement but using less letters, and a return phrase returns from the current function. Return phrases are entirely optional and do not take any @@ -33,7 +33,7 @@ for index:Size element:Int someArray These do what you'd expect them to, but for loops in ARF need some further explanation. Many modern languages allow you to iterate over data, and ARF is no -exception. The first argument of a for loop must be an index of type Size, the +exception. The first [argument](Arguments) of a for loop must be an index of type `Size`, the second argument must be typed as an element of the third argument, which must be an array or inherit from an array. In the future there might be some -iterateable interface that an object could fulfil. \ No newline at end of file +iterateable [interface](Interface-Definitions) that an object could fulfil. \ No newline at end of file