Skip to content

Commit 98eaf23

Browse files
committed
Fix small typo in the docs
1 parent d91d26a commit 98eaf23

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/howto/insert.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,13 @@ func (q *Queries) DeleteID(ctx context.Context, id int) (int, error) {
124124
return i, err
125125
}
126126

127-
const deleteAuhtor = `-- name: DeleteAuthor :one
127+
const deleteAuthor = `-- name: DeleteAuthor :one
128128
DELETE FROM authors WHERE id = $1
129129
RETURNING id, bio
130130
`
131131

132132
func (q *Queries) DeleteAuthor(ctx context.Context, id int) (Author, error) {
133-
row := q.db.QueryRowContext(ctx, deleteAuhtor, id)
133+
row := q.db.QueryRowContext(ctx, deleteAuthor, id)
134134
var i Author
135135
err := row.Scan(&i.ID, &i.Bio)
136136
return i, err

0 commit comments

Comments
 (0)