From 85422770e0e21e990e9840f63efc8a7cbfbd1fa4 Mon Sep 17 00:00:00 2001 From: Wolf Date: Sat, 13 Jul 2013 04:21:10 -0500 Subject: [PATCH] Update README.md Correcting typo in 'unique index' example. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9831804..0f4792d 100644 --- a/README.md +++ b/README.md @@ -390,7 +390,7 @@ db.ensureIndex({ fieldName: 'somefield', unique: true, sparse: true }, function // Format of the error message when the unique constraint is not met db.insert({ somefield: 'nedb' }, function (err) { // err is null - db.insert({ somefiled: 'nedb' }, function (err) { + db.insert({ somefield: 'nedb' }, function (err) { // err is { errorType: 'uniqueViolated' // , key: 'name' // , message: 'Unique constraint violated for key name' }