Skip to content

Commit c484dc1

Browse files
committed
Fixed AQL functions example.
1 parent 2dade3d commit c484dc1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -511,15 +511,15 @@ Creates an AQL user function with the given *name* and *code* if it does not alr
511511

512512
*Parameter*
513513

514-
* *name*: a valid AQL function name, e.g.: `"myfuncs: : accounting: : calculate_vat"`.
514+
* *name*: a valid AQL function name, e.g.: `"myfuncs::accounting::calculate_vat"`.
515515
* *code*: a string evaluating to a JavaScript function (not a JavaScript function object).
516516

517517
*Examples*
518518

519519
```js
520520
var qb = require('aqb');
521521
var db = require('arangojs')();
522-
var vat_fn_name = 'myfuncs: : acounting: : calculate_vat';
522+
var vat_fn_name = 'myfuncs::acounting::calculate_vat';
523523
var vat_fn_code = string(function (price) {
524524
return price * 0.19;
525525
});
@@ -572,7 +572,7 @@ Deletes the AQL user function with the given name from the database.
572572

573573
```js
574574
var db = require('arangojs')();
575-
db.dropFunction('myfuncs: : acounting: : calculate_vat', function (err) {
575+
db.dropFunction('myfuncs::acounting::calculate_vat', function (err) {
576576
if (err) return console.error(err);
577577
// the function no longer exists
578578
});

0 commit comments

Comments
 (0)