summaryrefslogtreecommitdiff
path: root/jstests/core/set4.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/set4.js')
-rw-r--r--jstests/core/set4.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/core/set4.js b/jstests/core/set4.js
index b37366cdb81..d26a241f322 100644
--- a/jstests/core/set4.js
+++ b/jstests/core/set4.js
@@ -2,11 +2,11 @@
t = db.set4;
t.drop();
-orig = { _id:1 , a : [ { x : 1 } ]}
+orig = { _id:1 , a : [ { x : 1 } ]};
t.insert( orig );
t.update( {}, { $set : { 'a.0.x' : 2, 'foo.bar' : 3 } } );
-orig.a[0].x = 2; orig.foo = { bar : 3 }
+orig.a[0].x = 2; orig.foo = { bar : 3 };
assert.eq( orig , t.findOne() , "A" );
t.update( {}, { $set : { 'a.0.x' : 4, 'foo.bar' : 5 } } );