Skip to content

Commit 0ffd938

Browse files
authored
doc: rename invalid function parameter
1 parent da5efc4 commit 0ffd938

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

326-
### `database.function(name[, options], function)`
326+
### `database.function(name[, options], fn)`
327327

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

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

0 commit comments

Comments
 (0)