Skip to content

Commit 8998d90

Browse files
author
Chris Cho
authored
091222-fix-version-constant-in-code (#835)
1 parent 8c1a8dd commit 8998d90

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

source/includes/stable-api-snippets/java-rs-client.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// Replace <connection string> with your MongoDB deployment's connection string.
1111
ConnectionString connString = new ConnectionString("<connection string>");
1212

13-
// Set the version of the {+stable-api+} on the client.
13+
// Set the Stable API version on the client.
1414
ServerApi serverApi = ServerApi.builder()
1515
.version(ServerApiVersion.V1)
1616
.build();

source/includes/stable-api-snippets/pymongo-client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
# Replace <connection string> with your MongoDB deployment's connection string.
55
conn_str = "<connection string>"
66

7-
# Set the version of the {+stable-api+} on the client.
7+
# Set the Stable API version on the client.
88
client = pymongo.MongoClient(conn_str, server_api=ServerApi('1'), serverSelectionTimeoutMS=5000)

source/includes/stable-api-snippets/scala-client.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import org.mongodb.scala._
66
// Replace <connection string> with your MongoDB deployment's connection string.
77
val uri = "<connection string>"
88

9-
// Set the version of the {+stable-api+} on the client.
9+
// Set the Stable API version on the client.
1010
val mongoClientSettings = MongoClientSettings.builder().applyConnectionString(ConnectionString(uri))
1111
.serverApi(ServerApi.builder().version(ServerApiVersion.V1).build())
1212
.build()

0 commit comments

Comments
 (0)