Skip to content

Commit 6b23aac

Browse files
committed
Typos and formatting.
1 parent f71f54f commit 6b23aac

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

Readme.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,16 +138,22 @@ Each database has an optional strict mode. If it is set then asking for a collec
138138
that does not exist will return an Error object in the callback. Similarly if you
139139
attempt to create a collection that already exists. Strict is provided for convenience.
140140

141-
var error_client = new Db('integration_tests_', new Server("127.0.0.1", 27017, {auto_reconnect: false}), {strict:true});
141+
var error_client = new Db(
142+
'integration_tests_',
143+
new Server("127.0.0.1", 27017, {auto_reconnect: false}),
144+
{strict:true});
142145
test.assertEquals(true, error_client.strict);
143146
error_client.open(function(err, error_client) {
144147
error_client.collection('does-not-exist', function(err, collection) {
145148
test.assertTrue(err instanceof Error);
146-
test.assertEquals("Collection does-not-exist does not exist. Currently in strict mode.", err.message);
149+
test.assertEquals("Collection does-not-exist does not exist. " +
150+
"Currently in strict mode.", err.message);
147151
});
148152

149-
error_client.createCollection('test_strict_access_collection', function(err, collection) {
150-
error_client.collection('test_strict_access_collection', function(err, collection) {
153+
error_client.createCollection('test_strict_access_collection',
154+
function(err, collection) {
155+
error_client.collection('test_strict_access_collection',
156+
function(err, collection) {
151157
test.assertTrue(collection instanceof Collection);
152158
// Let's close the db
153159
error_client.close();
@@ -166,7 +172,7 @@ or the documentation at MongoDB for query and update formats.
166172
Find
167173
--------
168174

169-
The find method is actually an (inconvenient) factory method to create
175+
The find method is actually a factory method to create
170176
Cursor objects. A Cursor lazily uses the connection the first time
171177
you call `nextObject`, `each`, or `toArray`.
172178

@@ -269,7 +275,7 @@ the modifier (`$inc`, etc.) formats.
269275

270276
Signature:
271277

272-
collection.update(criteria, objNew, options, \[callback\]);
278+
collection.update(criteria, objNew, options, [callback]);
273279

274280
Useful options:
275281

0 commit comments

Comments
 (0)