Skip to content

Commit 722a49d

Browse files
committed
Reflect Pointer re-export in README
1 parent 37938ac commit 722a49d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ npm install --save rfc6902
2727
### Import in your script
2828

2929
```js
30-
var rfc6902 = require('rfc6902')
30+
const rfc6902 = require('rfc6902')
3131
```
3232

3333
### Calculate diff between two objects
@@ -40,7 +40,7 @@ rfc6902.createPatch({first: 'Chris'}, {first: 'Chris', last: 'Brown'})
4040
### Apply a patch to some object
4141

4242
```js
43-
var users = [{first: 'Chris', last: 'Brown', age: 20}]
43+
const users = [{first: 'Chris', last: 'Brown', age: 20}]
4444
rfc6902.applyPatch(users, [
4545
{op: 'replace', path: '/0/age', value: 21},
4646
{op: 'add', path: '/-', value: {first: 'Raphael', age: 37}},
@@ -259,10 +259,10 @@ otherwise, it is an "Invalid pointer syntax" error.
259259

260260
#### Example
261261

262-
This project implements JSON Pointer functionality in `rfc6902/pointer`; e.g.:
262+
This project implements JSON Pointer functionality; e.g.:
263263

264264
```js
265-
const {Pointer} = require('rfc6902/pointer')
265+
const {Pointer} = require('rfc6902')
266266
const repository = {
267267
contributors: ['chbrown', 'diachedelic', 'nathanrobinson', 'kbiedrzycki', 'stefanmaric']
268268
}

0 commit comments

Comments
 (0)