Skip to content

Commit 1bf7f53

Browse files
CSHARP-3025: Update comment in Transactions withTxn examples for the manual.
1 parent 8be5914 commit 1bf7f53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/MongoDB.Driver.Examples/TransactionExamplesForDocs/WithTransactionExample1.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public void Example1()
4444
// string uri = "mongodb://mongos0.example.com:27017,mongos1.example.com:27017/";
4545
var client = new MongoClient(connectionString);
4646

47-
// Prereq: Create collections. CRUD operations in transactions must be on existing collections.
47+
// Prereq: Create collections.
4848
var database1 = client.GetDatabase("mydb1");
4949
var collection1 = database1.GetCollection<BsonDocument>("foo").WithWriteConcern(WriteConcern.WMajority);
5050
collection1.InsertOne(new BsonDocument("abc", 0));

0 commit comments

Comments
 (0)