Skip to content

Commit b1a2b7d

Browse files
authored
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 7427866 commit b1a2b7d

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
@@ -325,7 +325,7 @@ This method allows one or more SQL statements to be executed without returning
325325
any results. This method is useful when executing SQL statements read from a
326326
file. This method is a wrapper around [`sqlite3_exec()`][].
327327

328-
### `database.function(name[, options], function)`
328+
### `database.function(name[, options], fn)`
329329

330330
<!-- YAML
331331
added:
@@ -347,10 +347,10 @@ added:
347347
arguments (between zero and [`SQLITE_MAX_FUNCTION_ARG`][]). If `false`,
348348
`function` must be invoked with exactly `function.length` arguments.
349349
**Default:** `false`.
350-
* `function` {Function} The JavaScript function to call when the SQLite
351-
function is invoked. The return value of this function should be a valid
352-
SQLite data type: see [Type conversion between JavaScript and SQLite][].
353-
The result defaults to `NULL` if the return value is `undefined`.
350+
* `fn` {Function} The JavaScript function to call when the SQLite function is
351+
invoked. The return value of this function should be a valid SQLite data type:
352+
see [Type conversion between JavaScript and SQLite][]. The result defaults to
353+
`NULL` if the return value is `undefined`.
354354

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

0 commit comments

Comments
 (0)