minor: readme fix

This commit is contained in:
Kyle Banker 2010-02-24 13:05:55 -05:00
parent 3479317098
commit a133fdd4e8
1 changed files with 6 additions and 6 deletions

View File

@ -9,15 +9,15 @@ Here's a quick code sample. See the MongoDB Ruby Tutorial
require 'mongo'
include Mongo
@db = Connection.new.db('sample-db')
@coll = db.collection('test')
db = Connection.new.db('sample-db')
coll = db.collection('test')
@coll.remove
coll.remove
3.times do |i|
@coll.insert({'a' => i+1})
coll.insert({'a' => i+1})
end
puts "There are #{@coll.count()} records. Here they are:"
@coll.find().each { |doc| puts doc.inspect }
puts "There are #{coll.count()} records. Here they are:"
coll.find().each { |doc| puts doc.inspect }
= Installation