Skip to content

Commit f7f0b86

Browse files
authored
Fix typos in generated code sample (#1125)
1 parent 607aff1 commit f7f0b86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/howto/select.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,9 @@ type GetInfoForAuthorRow struct {
175175
BirthYear int
176176
}
177177

178-
func (q *Queries) GetBioForAuthor(ctx context.Context, id int) (GetBioForAuthor, error) {
178+
func (q *Queries) GetInfoForAuthor(ctx context.Context, id int) (GetInfoForAuthorRow, error) {
179179
row := q.db.QueryRowContext(ctx, getInfoForAuthor, id)
180-
var i GetBioForAuthor
180+
var i GetInfoForAuthorRow
181181
err := row.Scan(&i.Bio, &i.BirthYear)
182182
return i, err
183183
}

0 commit comments

Comments
 (0)