From 639fb28846781465bc52b373c3f73dda3873932c Mon Sep 17 00:00:00 2001 From: Peter Feichtinger Date: Tue, 20 Sep 2022 12:42:42 +0200 Subject: [PATCH] Fix typo --- named_args.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/named_args.go b/named_args.go index 3d91367b..391fb8cc 100644 --- a/named_args.go +++ b/named_args.go @@ -12,8 +12,8 @@ import ( // // For example, the following two queries are equivalent: // -// conn.Query(ctx, "select * from widgets where foo = @foo and bar = @bar", pgx.NamedArgs{"foo": 1, "bar": 2})) -// conn.Query(ctx, "select * from widgets where foo = $1 and bar = $2", 1, 2})) +// conn.Query(ctx, "select * from widgets where foo = @foo and bar = @bar", pgx.NamedArgs{"foo": 1, "bar": 2}) +// conn.Query(ctx, "select * from widgets where foo = $1 and bar = $2", 1, 2) type NamedArgs map[string]any // RewriteQuery implements the QueryRewriter interface.