Skip to content

Commit 10b3dfe

Browse files
committed
standardize code comments with other pages
1 parent f993919 commit 10b3dfe

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,9 @@ func main() {
6262
fmt.Printf("\t%s\n", id)
6363
}
6464

65+
// When you run this file for the first time, it should print output similar
66+
// to the following:
67+
// 2 documents inserted with IDs:
68+
// ObjectID("...")
69+
// ObjectID("...")
6570
}

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,9 @@ func main() {
5959
fmt.Printf("\t%s\n", id)
6060
}
6161

62+
// When you run this file for the first time, it should print output similar
63+
// to the following:
64+
// 2 documents inserted with IDs:
65+
// ObjectID("...")
66+
// ObjectID("...")
6267
}

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,8 @@ func main() {
5454
// Prints the ID of the inserted document
5555
fmt.Printf("Document inserted with ID: %s\n", result.InsertedID)
5656

57+
// When you run this file for the first time, it should print output similar
58+
// to the following:
59+
// Document inserted with ID: ObjectID("...")
60+
5761
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,7 @@ func main() {
4848
// Prints the ID of the inserted document
4949
fmt.Printf("Document inserted with ID: %s\n", result.InsertedID)
5050

51+
// When you run this file for the first time, it should print output similar
52+
// to the following:
53+
// Document inserted with ID: ObjectID("...")
5154
}

0 commit comments

Comments
 (0)