Skip to content

Commit 6541d52

Browse files
committed
Updates after Copilot review
1 parent 1e93af0 commit 6541d52

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

modules/guides/pages/call-user-defined-function.adoc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ include::ROOT:partial$component-signpost.adoc[]
1414

1515
== Introduction
1616

17-
// tag::intro[]
1817
A user-defined function can be called like any other {sqlpp} function.
1918

2019
* When you call a *global* function, any partial keyspace references within the function definition are resolved against the `default:` namespace, regardless of the current xref:n1ql:n1ql-intro/queriesandresults.adoc#query-context[query context].
@@ -32,7 +31,7 @@ To execute a user-defined function:
3231

3332
. Use the `EXECUTE FUNCTION` statement and specify the name of the function.
3433

35-
. Specify the function parameters within brackets.
34+
. Specify the function parameters within parentheses `()`.
3635

3736
====
3837
The following query executes a function called `GetBusinessDays`, which was created in the current query context.
@@ -53,7 +52,7 @@ To call a user-defined function in any {sqlpp} statement:
5352

5453
. Specify the name of the function.
5554

56-
. Specify the function parameters within brackets.
55+
. Specify the function parameters within parentheses `()`.
5756

5857
=====
5958
The following query calls the `GetBusinessDays` function, which was created in the current query context, from a `SELECT` statement.

modules/guides/pages/javascript-udfs.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ User-defined functions can be categorized based on the language used to define t
4646
| In JavaScript libraries
4747
|===
4848

49-
User-defined junctions written in JavaScript support the https://en.wikipedia.org/wiki/ECMAScript[ECMAScript^] standard, with some restrictions and extensions.
49+
User-defined functions written in JavaScript support the https://en.wikipedia.org/wiki/ECMAScript[ECMAScript^] standard, with some restrictions and extensions.
5050
For more information, see xref:javascript-udfs:javascript-functions-with-couchbase.adoc[].
5151

5252
After you have created your user-defined functions, you can call them like any other {sqlpp} function.

0 commit comments

Comments
 (0)