summaryrefslogtreecommitdiff
path: root/jstests/core/update_arraymatch3.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/update_arraymatch3.js')
-rw-r--r--jstests/core/update_arraymatch3.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/core/update_arraymatch3.js b/jstests/core/update_arraymatch3.js
index 116ac6be2e3..96fa0a5cbb5 100644
--- a/jstests/core/update_arraymatch3.js
+++ b/jstests/core/update_arraymatch3.js
@@ -7,11 +7,11 @@ o = { _id : 1 ,
comments : [ { "by" : "joe", "votes" : 3 },
{ "by" : "jane", "votes" : 7 }
]
- }
+ };
t.save( o );
assert.eq( o , t.findOne() , "A1" );
-t.update( {'comments.by':'joe'}, {$inc:{'comments.$.votes':1}}, false, true )
+t.update( {'comments.by':'joe'}, {$inc:{'comments.$.votes':1}}, false, true );
o.comments[0].votes++;
assert.eq( o , t.findOne() , "A2" );