Skip to content

Commit

Permalink
Merge pull request #108 from auqust/patch-1
Browse files Browse the repository at this point in the history
Update One Code Example
  • Loading branch information
stephenafamo authored Oct 1, 2023
2 parents 5127b6c + 84f241e commit df72ace
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/sql-executor/one.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if err != nil {
q := psql.Select(...)

// user is of type userObj{}
user, err := bob.Exec(ctx, db, q, scan.StructMapper[userObj]())
user, err := bob.One(ctx, db, q, scan.StructMapper[userObj]())
if err != nil {
// ...
}
Expand Down

0 comments on commit df72ace

Please sign in to comment.