Skip to content

Commit 7b341ab

Browse files
authored
Merge pull request #87 from theothertomelliott/master
Tweak grammar in godoc
2 parents b641a79 + 814f1f8 commit 7b341ab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gen.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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.
4949
func (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.

0 commit comments

Comments
 (0)