From 35a3bfe2f9d316132b19b9c6a13b87a8d5f3f597 Mon Sep 17 00:00:00 2001 From: Nuno Cruces Date: Fri, 7 Jun 2024 12:10:03 +0100 Subject: [PATCH] Doc fixes. --- json.go | 3 ++- pointer.go | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/json.go b/json.go index 9b2565e8..2b762c09 100644 --- a/json.go +++ b/json.go @@ -5,7 +5,8 @@ import "github.com/ncruces/go-sqlite3/internal/util" // JSON returns a value that can be used as an argument to // [database/sql.DB.Exec], [database/sql.Row.Scan] and similar methods to // store value as JSON, or decode JSON into value. -// JSON should NOT be used with [BindJSON] or [ResultJSON]. +// JSON should NOT be used with [Stmt.BindJSON], [Stmt.ColumnJSON], +// [Value.JSON], or [Context.ResultJSON]. func JSON(value any) any { return util.JSON{Value: value} } diff --git a/pointer.go b/pointer.go index 611c1528..0e2418b9 100644 --- a/pointer.go +++ b/pointer.go @@ -4,7 +4,8 @@ import "github.com/ncruces/go-sqlite3/internal/util" // Pointer returns a pointer to a value that can be used as an argument to // [database/sql.DB.Exec] and similar methods. -// Pointer should NOT be used with [BindPointer] or [ResultPointer]. +// Pointer should NOT be used with [Stmt.BindPointer], +// [Value.Pointer], or [Context.ResultPointer]. // // https://sqlite.org/bindptr.html func Pointer[T any](value T) any {