File tree Expand file tree Collapse file tree 6 files changed +12
-1
lines changed
includes/usage-examples/code-snippets Expand file tree Collapse file tree 6 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ UpdateMany() Example: Full File
257257.. include:: /includes/usage-examples/example-intro.rst
258258
259259The following example is a fully runnable file that finds and updates multiple
260- exisiting documents in the ``restaurants`` collection. Select the
260+ existing documents in the ``restaurants`` collection. Select the
261261:guilabel:`Struct` or :guilabel:`bson.D` tab to see the corresponding code:
262262
263263.. tabs::
Original file line number Diff line number Diff line change @@ -71,4 +71,6 @@ func main() {
7171 // Prints the number of updated documents
7272 fmt .Printf ("Documents updated: %v\n " , result .ModifiedCount )
7373
74+ // When you run this file for the first time, it should print output similar to the following:
75+ // Documents updated: 296
7476}
Original file line number Diff line number Diff line change @@ -48,4 +48,7 @@ func main() {
4848
4949 // Prints the number of updated documents
5050 fmt .Printf ("Documents updated: %v\n " , result .ModifiedCount )
51+
52+ // When you run this file for the first time, it should print output similar to the following:
53+ // Documents updated: 296
5154}
Original file line number Diff line number Diff line change @@ -66,4 +66,7 @@ func main() {
6666
6767 // Prints the number of updated documents
6868 fmt .Printf ("Documents updated: %v\n " , result .ModifiedCount )
69+
70+ // When you run this file for the first time, it should print output similar to the following:
71+ // Documents updated: 1
6972}
Original file line number Diff line number Diff line change @@ -48,4 +48,7 @@ func main() {
4848
4949 // Prints the number of updated documents
5050 fmt .Printf ("Documents updated: %v\n " , result .ModifiedCount )
51+
52+ // When you run this file for the first time, it should print output similar to the following:
53+ // Documents updated: 1
5154}
You can’t perform that action at this time.
0 commit comments