Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
harlantwood committed Jan 21, 2024
1 parent 001da69 commit 5b3cbb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ Allows you to create one or another generator conditionally on the output of ano

This is an advanced feature. Often, you can use a combination of `Generators.tuple` and `Generator#map` instead:

>> G.tuple(integer, integer).sample(1, size: 100, rng: Random.new(42)
>> G.tuple(G.integer, G.integer).sample(1, size: 100, rng: Random.new(42))
=> [[2, 79]]

#### Generators.one_of
Expand Down

0 comments on commit 5b3cbb9

Please sign in to comment.