Skip to content

Commit 9f56fb4

Browse files
committed
mw feedback and update comments to standardize with other pages
1 parent 48f1cab commit 9f56fb4

File tree

6 files changed

+12
-1
lines changed

6 files changed

+12
-1
lines changed

source/crud/update.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ UpdateMany() Example: Full File
257257
.. include:: /includes/usage-examples/example-intro.rst
258258

259259
The 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::

source/includes/usage-examples/code-snippets/insertOneBsonD.go

Whitespace-only changes.

source/includes/usage-examples/code-snippets/updateMany.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

source/includes/usage-examples/code-snippets/updateManyBson.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

source/includes/usage-examples/code-snippets/updateOne.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

source/includes/usage-examples/code-snippets/updateOneBson.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)