Skip to content

Commit d8204d3

Browse files
Renegade334aduh95
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 34b6305 commit d8204d3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/api/sqlite.md

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

316-
### `database.function(name[, options], function)`
316+
### `database.function(name[, options], fn)`
317317

318318
<!-- YAML
319319
added:
@@ -335,10 +335,10 @@ added:
335335
arguments (between zero and [`SQLITE_MAX_FUNCTION_ARG`][]). If `false`,
336336
`function` must be invoked with exactly `function.length` arguments.
337337
**Default:** `false`.
338-
* `function` {Function} The JavaScript function to call when the SQLite
339-
function is invoked. The return value of this function should be a valid
340-
SQLite data type: see [Type conversion between JavaScript and SQLite][].
341-
The result defaults to `NULL` if the return value is `undefined`.
338+
* `fn` {Function} The JavaScript function to call when the SQLite function is
339+
invoked. The return value of this function should be a valid SQLite data type:
340+
see [Type conversion between JavaScript and SQLite][]. The result defaults to
341+
`NULL` if the return value is `undefined`.
342342

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

0 commit comments

Comments
 (0)