Skip to content

Commit

Permalink
Repaired the example
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo-ter-Doest committed Mar 13, 2024
1 parent 9fc95bc commit 70b16c6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,12 @@ So the handling of keys is a bit different depending on the storage method.

## Example with file-based storage
```javascript
var Natural = require('natural');
let storage = require('natural').StorageBackend;

const object = {
attr1: 'val1',
attr2: 'val2'
}
const options = { filename: 'example.txt' }

storageBackend = new storage.StorageBackend(storage.STORAGE_TYPES.FILE)

Expand Down

0 comments on commit 70b16c6

Please sign in to comment.