Skip to content

Commit 8ba4757

Browse files
authored
Fix Array Do documentation (#5598)
1 parent e54f2dc commit 8ba4757

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.changeset/tender-papers-divide.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"effect": patch
3+
---
4+
5+
Fix Array Do documentation

packages/effect/src/Array.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3363,7 +3363,7 @@ export const cartesian: {
33633363
* 2. Within the do simulation scope, you can use the `bind` function to define variables and bind them to `Array` values
33643364
* 3. You can accumulate multiple `bind` statements to define multiple variables within the scope
33653365
* 4. Inside the do simulation scope, you can also use the `let` function to define variables and bind them to simple values
3366-
* 5. Regular `Option` functions like `map` and `filter` can still be used within the do simulation. These functions will receive the accumulated variables as arguments within the scope
3366+
* 5. Regular `Array` functions like `map` and `filter` can still be used within the do simulation. These functions will receive the accumulated variables as arguments within the scope
33673367
*
33683368
* **Example**
33693369
*
@@ -3412,7 +3412,7 @@ export const Do: ReadonlyArray<{}> = of({})
34123412
* 2. Within the do simulation scope, you can use the `bind` function to define variables and bind them to `Array` values
34133413
* 3. You can accumulate multiple `bind` statements to define multiple variables within the scope
34143414
* 4. Inside the do simulation scope, you can also use the `let` function to define variables and bind them to simple values
3415-
* 5. Regular `Option` functions like `map` and `filter` can still be used within the do simulation. These functions will receive the accumulated variables as arguments within the scope
3415+
* 5. Regular `Array` functions like `map` and `filter` can still be used within the do simulation. These functions will receive the accumulated variables as arguments within the scope
34163416
*
34173417
* **Example**
34183418
*
@@ -3473,7 +3473,7 @@ export const bind: {
34733473
* 2. Within the do simulation scope, you can use the `bind` function to define variables and bind them to `Array` values
34743474
* 3. You can accumulate multiple `bind` statements to define multiple variables within the scope
34753475
* 4. Inside the do simulation scope, you can also use the `let` function to define variables and bind them to simple values
3476-
* 5. Regular `Option` functions like `map` and `filter` can still be used within the do simulation. These functions will receive the accumulated variables as arguments within the scope
3476+
* 5. Regular `Array` functions like `map` and `filter` can still be used within the do simulation. These functions will receive the accumulated variables as arguments within the scope
34773477
*
34783478
* **Example**
34793479
*
@@ -3538,7 +3538,7 @@ export {
35383538
* 2. Within the do simulation scope, you can use the `bind` function to define variables and bind them to `Array` values
35393539
* 3. You can accumulate multiple `bind` statements to define multiple variables within the scope
35403540
* 4. Inside the do simulation scope, you can also use the `let` function to define variables and bind them to simple values
3541-
* 5. Regular `Option` functions like `map` and `filter` can still be used within the do simulation. These functions will receive the accumulated variables as arguments within the scope
3541+
* 5. Regular `Array` functions like `map` and `filter` can still be used within the do simulation. These functions will receive the accumulated variables as arguments within the scope
35423542
*
35433543
* **Example**
35443544
*

0 commit comments

Comments
 (0)