Skip to content

Commit 43c4f29

Browse files
committed
MW feedback
1 parent be2ccbb commit 43c4f29

File tree

6 files changed

+7
-11
lines changed

6 files changed

+7
-11
lines changed

source/includes/usage-examples/sample-app.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@
44
gem 'mongo'
55
end
66

7-
uri = "<connection string URI>"
7+
uri = "<connection string>"
88

99
Mongo::Client.new(uri) do |client|
10-
# start-db-coll
1110
database = client.use('<database name>')
1211
collection = database[:<collection name>]
13-
# end-db-coll
1412

1513
# Start example code here
1614

source/includes/usage-examples/write-code-examples.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@
44
gem 'mongo'
55
end
66

7-
uri = "<connection string URI>"
7+
uri = "<connection string>"
88

99
Mongo::Client.new(uri) do |client|
10-
# start-db-coll
1110
database = client.use('sample_restaurants')
1211
collection = database[:restaurants]
13-
# end-db-coll
1412

1513
# start-insert-one
1614
document = { field_name: '<field value>' }

source/includes/write/delete.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
gem 'mongo'
55
end
66

7-
uri = "<connection string URI>"
7+
uri = "<connection string>"
88

99
Mongo::Client.new(uri) do |client|
1010
# start-db-coll

source/includes/write/insert.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
gem 'mongo'
55
end
66

7-
uri = "<connection string URI>"
7+
uri = "<connection string>"
88

99
Mongo::Client.new(uri) do |client|
1010

source/includes/write/update.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
gem 'mongo'
55
end
66

7-
uri = "<connection string URI>"
7+
uri = "<connection string>"
88

99
Mongo::Client.new(uri) do |client|
1010
# start-db-coll

source/write.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ can use to write data to MongoDB by using the {+driver-short+}.
4343

4444
To use an example from this page, copy the code example into the :ref:`sample
4545
application <ruby-write-sample>` or your own application. Be sure to replace all
46-
placeholders in the code examples, such as ``<connection string URI>``, with the
46+
placeholders in the code examples, such as ``<connection string>``, with the
4747
relevant values for your MongoDB deployment.
4848

4949
.. _ruby-write-sample:
@@ -54,7 +54,7 @@ relevant values for your MongoDB deployment.
5454
:language: ruby
5555
:copyable:
5656
:linenos:
57-
:emphasize-lines: 15-17
57+
:emphasize-lines: 13-15
5858

5959
Insert One
6060
----------

0 commit comments

Comments
 (0)