summaryrefslogtreecommitdiff
path: root/jstests/core/update_arraymatch2.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/update_arraymatch2.js')
-rw-r--r--jstests/core/update_arraymatch2.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/core/update_arraymatch2.js b/jstests/core/update_arraymatch2.js
index c07a61c378c..fc1e2f93fc5 100644
--- a/jstests/core/update_arraymatch2.js
+++ b/jstests/core/update_arraymatch2.js
@@ -7,8 +7,8 @@ t.insert( { x : 99 } );
t.update( {x : 2}, { $inc : { "x.$" : 1 } } , false, true );
assert( t.findOne({x:1}).x[1] == 3, "A1" );
-t.insert( { x : { y : [8,7,6] } } )
-t.update( {'x.y' : 7}, { $inc : { "x.y.$" : 1 } } , false, true )
+t.insert( { x : { y : [8,7,6] } } );
+t.update( {'x.y' : 7}, { $inc : { "x.y.$" : 1 } } , false, true );
assert.eq( 8 , t.findOne({"x.y" : 8}).x.y[1] , "B1" );
t.insert( { x : [90,91,92], y : ['a', 'b', 'c'] } );