Skip to content

Commit

Permalink
doc: fix example in package doc
Browse files Browse the repository at this point in the history
Fix missing Context in function signature.
  • Loading branch information
dolmen committed Nov 4, 2023
1 parent ea674df commit 124cec8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ limitations under the License.
//
// You just have to define the function signature you need:
//
// var whoami func() (string, error)
// var whoami func(context.Context) (string, error)
//
// and the SQL statement that this function wraps:
//
Expand All @@ -27,6 +27,6 @@ limitations under the License.
//
// You can now use the function:
//
// user, err := whoami()
// user, err := whoami(ctx)
// fmt.Println("Connected as", user)
package sqlfunc

0 comments on commit 124cec8

Please sign in to comment.