File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,9 @@ Parent is [@aureooms/js-heap](https://github.com/aureooms/js-heap).
9
9
> [ regenerator-runtime/runtime] ( https://www.npmjs.com/package/regenerator-runtime ) .
10
10
11
11
``` js
12
- let heap = new FibonacciHeap ( compare .increasing ) ;
12
+ import {FibonacciHeap } from ' @aureooms/js-fibonacci-heap' ;
13
+ import {increasing } from ' @aureooms/js-compare' ;
14
+ let heap = new FibonacciHeap ( increasing ) ;
13
15
```
14
16
15
17
[ ![ License] ( https://img.shields.io/github/license/aureooms/js-fibonacci-heap.svg )] ( https://raw.githubusercontent.com/aureooms/js-fibonacci-heap/main/LICENSE )
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import 'regenerator-runtime/runtime.js' ;
12
12
13
13
Then, import the library where needed
14
14
``` js
15
- const fibonacciheap = require ( ' @aureooms/js-fibonacci-heap' ) ;
15
+ const { FibonacciHeap } = require ( ' @aureooms/js-fibonacci-heap' ) ;
16
16
// or
17
- import * as fibonacciheap from ' @aureooms/js-fibonacci-heap' ;
17
+ import { FibonacciHeap } from ' @aureooms/js-fibonacci-heap' ;
18
18
```
You can’t perform that action at this time.
0 commit comments