Skip to content

Commit 70b8e6b

Browse files
Renegade334marco-ippolito
authored andcommitted
doc: rename invalid function parameter
PR-URL: #61942 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com>
1 parent 4045c76 commit 70b8e6b

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

doc/api/sqlite.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ This method allows one or more SQL statements to be executed without returning
278278
any results. This method is useful when executing SQL statements read from a
279279
file. This method is a wrapper around [`sqlite3_exec()`][].
280280

281-
### `database.function(name[, options], function)`
281+
### `database.function(name[, options], fn)`
282282

283283
<!-- YAML
284284
added: v22.13.0
@@ -298,10 +298,10 @@ added: v22.13.0
298298
arguments (between zero and [`SQLITE_MAX_FUNCTION_ARG`][]). If `false`,
299299
`function` must be invoked with exactly `function.length` arguments.
300300
**Default:** `false`.
301-
* `function` {Function} The JavaScript function to call when the SQLite
302-
function is invoked. The return value of this function should be a valid
303-
SQLite data type: see [Type conversion between JavaScript and SQLite][].
304-
The result defaults to `NULL` if the return value is `undefined`.
301+
* `fn` {Function} The JavaScript function to call when the SQLite function is
302+
invoked. The return value of this function should be a valid SQLite data type:
303+
see [Type conversion between JavaScript and SQLite][]. The result defaults to
304+
`NULL` if the return value is `undefined`.
305305

306306
This method is used to create SQLite user-defined functions. This method is a
307307
wrapper around [`sqlite3_create_function_v2()`][].

0 commit comments

Comments
 (0)