Skip to content

Commit

Permalink
Merge pull request #82 from kkweon/master
Browse files Browse the repository at this point in the history
fix(gen/struct): typo in the comment
  • Loading branch information
untoldwind authored May 31, 2021
2 parents f350002 + 62760ed commit 90cc76d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gen/struct.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

// Struct generates a given struct type.
// rt has to be the reflect type of the struct, gens contains a map of field generators.
// Note that the result types of the generators in gen have to match the type of the correspoinding
// Note that the result types of the generators in gen have to match the type of the corresponding
// field in the struct. Also note that only public fields of a struct can be generated
func Struct(rt reflect.Type, gens map[string]gopter.Gen) gopter.Gen {
if rt.Kind() == reflect.Ptr {
Expand Down Expand Up @@ -77,7 +77,7 @@ func Struct(rt reflect.Type, gens map[string]gopter.Gen) gopter.Gen {
// Note that StructPtr does not generate nil, if you want to include nil in your
// testing you should combine gen.PtrOf with gen.Struct.
// rt has to be the reflect type of the struct, gens contains a map of field generators.
// Note that the result types of the generators in gen have to match the type of the correspoinding
// Note that the result types of the generators in gen have to match the type of the corresponding
// field in the struct. Also note that only public fields of a struct can be generated
func StructPtr(rt reflect.Type, gens map[string]gopter.Gen) gopter.Gen {
if rt.Kind() == reflect.Ptr {
Expand Down

0 comments on commit 90cc76d

Please sign in to comment.