Skip to content

Commit 191e425

Browse files
committed
doc: update examples to use static functions
1 parent 9faf0dd commit 191e425

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
@@ -49,8 +49,8 @@ import JsonURL from "@jsonurl/jsonurl";
4949
### The JavaScript API
5050
Once included, the API is the same for all three.
5151
```js
52-
let p = new JsonURL();
53-
let value = p.parse( "(Hello:World!)" );
52+
let value = JsonURL.parse( "(Hello:World!)" );
53+
let string = JsonURL.stringify( value );
5454
```
5555
There are options available, but that's all you need to get started.
5656

0 commit comments

Comments
 (0)