Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
louischatriot committed Feb 15, 2014
1 parent d70d958 commit 71dd492
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ An `_id` field will be automatically generated by NeDB. It's a 16-characters alp
Field names cannot begin by '$' or contain a '.'.

```javascript
var document = { hello: 'world'
var doc = { hello: 'world'
, n: 5
, today: new Date()
, nedbIsAwesome: true
Expand All @@ -127,7 +127,7 @@ var document = { hello: 'world'
, infos: { name: 'nedb' }
};

db.insert(document, function (err, newDoc) { // Callback is optional
db.insert(doc, function (err, newDoc) { // Callback is optional
// newDoc is the newly inserted document, including its _id
// newDoc has no key called notToBeSaved since its value was undefined
});
Expand Down

0 comments on commit 71dd492

Please sign in to comment.