Skip to content

Commit 7653a9a

Browse files
committed
[DOCS] Updates code snippet formatting in connecting
1 parent 0953491 commit 7653a9a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/connecting.asciidoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,10 @@ client = Elasticsearch::Client.new(
219219

220220
Or use the common URL format:
221221

222+
[source,ruby]
223+
------------------------------------
222224
client = Elasticsearch::Client.new(url: 'https://username:password@localhost:9200')
225+
------------------------------------
223226

224227
To pass a custom certificate for SSL peer verification to Faraday-based clients,
225228
use the `transport_options` option:

0 commit comments

Comments
 (0)