Skip to content

Commit c2e5b61

Browse files
committed
Fix README errors
1 parent 8d7dac6 commit c2e5b61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Usage
1818
-----
1919

2020
```javascript
21-
const JsonPointer = require("@hyperjump/json-pointer");
21+
import * as JsonPointer from "@hyperjump/json-pointer";
2222

2323
const value = {
2424
"foo": {
@@ -27,7 +27,7 @@ const value = {
2727
};
2828

2929
// Construct pointers
30-
const fooPointer = JsonPointer.append(JsonPointer.nil, "foo"); // "/foo"
30+
const fooPointer = JsonPointer.append("foo", JsonPointer.nil); // "/foo"
3131
const fooBarPointer = JsonPointer.append(fooPointer, "bar"); // "/foo/bar"
3232

3333
// Get a value from a pointer

0 commit comments

Comments
 (0)