Skip to content

Commit bd07fce

Browse files
Merge pull request #452 from couchbase/DOC-13284-Feedback-on-Hello-World--Couchbase-Docs---Managed-Couchbase-Server-option-only-shows-the-connection-string
[DOC-13284]: Feedback on Hello World | Couchbase Docs - the Managed Couchbase Server option only shows the connection string
2 parents a68bbd0 + fb1b02e commit bd07fce

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

modules/devguide/examples/java/StartUsing.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public class StartUsing {
1919

2020
public static void main(String... args) {
2121
// tag::connect-env[]
22+
// Use the following code to connect to your cluster.
2223
Cluster cluster = Cluster.connect(
2324
connectionString,
2425
ClusterOptions.clusterOptions(username, password).environment(env -> {

modules/hello-world/pages/start-using-sdk.adoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,11 @@ Self-Managed Couchbase Server::
219219
220220
[source,java]
221221
----
222-
include::devguide:example$java/StartUsing.java[tags=connect-info,indent=0]
222+
include::devguide:example$java/StartUsing.java[tags="connect-info",indent=0]
223+
----
224+
[source,java]
225+
----
226+
include::devguide:example$java/StartUsing.java[tags="connect-env",indent=0]
223227
----
224228
--
225229

0 commit comments

Comments
 (0)