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)