Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

Commit

Permalink
Correct the const Suits example
Browse files Browse the repository at this point in the history
We have an Enum.make() factory method that needs to be called, can't just call the Enum object directly.
  • Loading branch information
ryan953 committed Jun 16, 2018
1 parent c448b46 commit 2574073
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -26,7 +26,7 @@ Once the package is installed you can create instances by passing the key/value
```js
var Enum = require('Enumjs');

const Suits = Enum({
const Suits = Enum.make({
HEART: 'HEART',
DIAMOND: 'DIAMOND',
SPADE: 'SPADE',
Expand Down

0 comments on commit 2574073

Please sign in to comment.