diff --git a/README.md b/README.md index aa49bda..06ab7a6 100644 --- a/README.md +++ b/README.md @@ -250,7 +250,7 @@ Always returns the given value. No shrinking. Allows you to take the result of one generator and transform it into something else. - >> G.choose(32..128).map(&:chr).sample(1, size: 10, Random.new(42)) + >> G.choose(32..128).map(&:chr).sample(1, size: 10, rng: Random.new(42)) => ["S"] #### Generator#bind @@ -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