From 6c01ae672ffa83942e4f7de85a80d46845de4eb3 Mon Sep 17 00:00:00 2001 From: Shibi <69033713+shibisuriya@users.noreply.github.com> Date: Sun, 21 Jun 2026 11:23:10 +0530 Subject: [PATCH] Clarify control flow usage with Effect.gen in generators Reworded the explanation of using Effect.gen with generators for clarity. --- .../src/content/docs/docs/getting-started/using-generators.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/src/content/docs/docs/getting-started/using-generators.mdx b/content/src/content/docs/docs/getting-started/using-generators.mdx index c79a0f783..409810f63 100644 --- a/content/src/content/docs/docs/getting-started/using-generators.mdx +++ b/content/src/content/docs/docs/getting-started/using-generators.mdx @@ -171,7 +171,7 @@ It's important to note that although the code appears similar, the two programs ## Embracing Control Flow -One significant advantage of using `Effect.gen` in conjunction with generators is its capability to employ standard control flow constructs within the generator function. These constructs include `if`/`else`, `for`, `while`, and other branching and looping mechanisms, enhancing your ability to express complex control flow logic in your code. +It is easy to express complex control flow logic with `Effect.gen` because it accepts a generator function and standard control flow constructs such as `if`/`else`, `for`, `while`, and other branching and looping mechanisms can be used inside the generator function. **Example** (Using Control Flow)