Skip to content

Commit

Permalink
Fix wrong import for just-permutations in README (#534)
Browse files Browse the repository at this point in the history
  • Loading branch information
wancup committed Jan 28, 2023
1 parent a4641cf commit 00d518d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1441,7 +1441,7 @@ yarn add just-permutations
Returns all permutations of the length N of the elements of the given Array
```js
import permutations from 'just-array-permutations;
import permutations from 'just-permutations';

permutations([1, 2, 3]); // [[1, 2, 3], [2, 1, 3], [2, 3, 1], [1, 3, 2], [3, 1, 2], [3, 2, 1]]
permutations([]); // []
Expand Down
2 changes: 1 addition & 1 deletion md-variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
"dir": "array-permutations",
"description": "Returns all permutations of the length N of the elements of the given Array",
"examples": [
"import permutations from 'just-array-permutations;",
"import permutations from 'just-permutations';",
"",
"permutations([1, 2, 3]); // [[1, 2, 3], [2, 1, 3], [2, 3, 1], [1, 3, 2], [3, 1, 2], [3, 2, 1]]",
"permutations([]); // []",
Expand Down
2 changes: 1 addition & 1 deletion packages/array-permutations/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ yarn add just-permutations
Returns all permutations of the length N of the elements of the given Array

```js
import permutations from 'just-array-permutations;
import permutations from 'just-permutations';

permutations([1, 2, 3]); // [[1, 2, 3], [2, 1, 3], [2, 3, 1], [1, 3, 2], [3, 1, 2], [3, 2, 1]]
permutations([]); // []
Expand Down

0 comments on commit 00d518d

Please sign in to comment.