File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,8 @@ func (g Gen) WithLabel(label string) Gen {
4444//
4545// f(value) == true.
4646//
47- // Use this care, if the sieve to to fine the generator will have many misses which results
48- // in an undecided property.
47+ // Use with care, if the sieve is too fine the generator will have many misses which
48+ // results in an undecided property.
4949func (g Gen ) SuchThat (f interface {}) Gen {
5050 checkVal := reflect .ValueOf (f )
5151 checkType := checkVal .Type ()
@@ -101,7 +101,7 @@ func (g Gen) WithShrinker(shrinker Shrinker) Gen {
101101 }
102102}
103103
104- // Map creates a derived generator by mapping all generatored values with a given function.
104+ // Map creates a derived generator by mapping all generated values with a given function.
105105// f: has to be a function with one parameter (matching the generated value) and a single return.
106106// Note: The derived generator will not have a sieve or shrinker unless you are mapping to the same type
107107// Note: The mapping function may have a second parameter "*GenParameters"
@@ -216,7 +216,7 @@ func (g Gen) MapResult(f func(*GenResult) *GenResult) Gen {
216216 }
217217}
218218
219- // CombineGens creates a generators from a list of generators.
219+ // CombineGens creates a generator from a list of generators.
220220// The result type will be a []interface{} containing the generated values of each generators in
221221// the list.
222222// Note: The combined generator will not have a sieve or shrinker.
You can’t perform that action at this time.
0 commit comments