Skip to content

Commit 8456332

Browse files
authored
Update replace one code snippet (#427)
1 parent a9ad799 commit 8456332

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

source/includes/code-examples/replace-one/ReplaceOne.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ private static ReplaceOneResult ReplaceOneRestaurant()
5959
// Generates a new restaurant document
6060
Restaurant newPizzaRestaurant = new()
6161
{
62-
Id = oldId
62+
Id = oldId,
6363
Name = "Mongo's Pizza",
6464
Cuisine = "Pizza",
6565
Address = new Address()
@@ -89,7 +89,7 @@ private static ReplaceOneResult ReplaceOneRestaurantWithOptions()
8989
// Generates a new restaurant document
9090
Restaurant newPizzaRestaurant = new()
9191
{
92-
Id = oldId
92+
Id = oldId,
9393
Name = "Mongo's Pizza",
9494
Cuisine = "Pizza",
9595
Address = new Address()

source/includes/code-examples/replace-one/ReplaceOneAsync.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ private static async Task<ReplaceOneResult> ReplaceOneRestaurantAsync()
5959
// Generates a new restaurant document
6060
Restaurant newPizzaRestaurant = new()
6161
{
62-
Id = oldId
62+
Id = oldId,
6363
Name = "Mongo's Pizza",
6464
Cuisine = "Pizza",
6565
Address = new Address()
@@ -88,7 +88,7 @@ private static async Task<ReplaceOneResult> ReplaceOneRestaurantAsyncWithOptions
8888
// Generates a new restaurant document
8989
Restaurant newPizzaRestaurant = new()
9090
{
91-
Id = oldId
91+
Id = oldId,
9292
Name = "Mongo's Pizza",
9393
Cuisine = "Pizza",
9494
Address = new Address()

0 commit comments

Comments
 (0)