Skip to content

Commit 52c94d9

Browse files
committed
Documentation: Fix scala documentation copy pasta
JAVA-4205
1 parent 3196681 commit 52c94d9

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docs/reference/content/driver-scala/tutorials/client-side-encryption.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ val clientSettings = MongoClientSettings.builder()
236236
.bypassAutoEncryption(true)
237237
.build())
238238
.build()
239-
val mongoClient = MongoClients.create(clientSettings)
239+
val mongoClient = MongoClient(clientSettings)
240240
241241
...
242242

docs/reference/content/driver-scala/tutorials/connect-to-mongodb.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ To connect to a standalone MongoDB instance:
8282

8383
## Connect to a Replica Set
8484

85-
To connect to a [replica set]({{<docsref "replication/" >}}), you must specify one or more members to the `MongoClients` create method.
85+
To connect to a [replica set]({{<docsref "replication/" >}}), you must specify one or more members to the `MongoClient` apply method.
8686

8787
{{% note %}}
8888
MongoDB will auto-discover the primary and the secondaries.
@@ -118,7 +118,7 @@ val mongoClient = MongoClient(
118118
## Connect to a Sharded Cluster
119119

120120
To connect to a [sharded cluster]({{<docsref "sharding/" >}}), specify the `mongos` instance
121-
or instances to a `MongoClients` create method.
121+
or instances to a `MongoClient` apply method.
122122

123123
To connect to a single `mongos` instance:
124124

docs/reference/content/driver-scala/tutorials/ssl.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ To specify TLS/SSL with with [`MongoClientSettings`]({{< apiref "mongo-scala-dri
3939
val settings = MongoClientSettings.builder()
4040
.applyToSslSettings((builder: SslSettings.Builder) => builder.enabled(true))
4141
.build()
42-
val client = MongoClients.create(settings)
42+
val client = MongoClient(settings)
4343
```
4444

4545
### Specify `SSLContext` via `MongoClientSettings`
@@ -59,7 +59,7 @@ val settings = MongoClientSettings.builder()
5959
builder.context(sslContext)
6060
})
6161
.build()
62-
val client = MongoClients.create(settings)
62+
val client = MongoClient(settings)
6363
```
6464

6565
## Disable Hostname Verification
@@ -193,4 +193,4 @@ An application will need to set several JVM system properties to set up OCSP sta
193193
To configure an application to use OCSP stapling, the application must already be set up to connect to a server using TLS, and the server must be set up to staple an OCSP response to the certificate it returns as part of the the TLS handshake.
194194

195195
For more information on configuring a Java application to use OCSP, please
196-
refer to the [`Client-Driven OCSP and OCSP Stapling`]({{< javaseref "technotes/guides/security/jsse/ocsp.html" >}}).
196+
refer to the [`Client-Driven OCSP and OCSP Stapling`]({{< javaseref "technotes/guides/security/jsse/ocsp.html" >}}).

0 commit comments

Comments
 (0)