Skip to content

Commit 3d517ce

Browse files
[Backport 8.12] Backport documentation fixes to 8.12 (#799)
* Fix indentation issues in indexing.asciidoc (#793) * Update connecting.asciidoc (#794) --------- Co-authored-by: Harald Nordgren <[email protected]>
1 parent 2b891aa commit 3d517ce

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.doc/connecting.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Once you have the `http_ca.crt` file somewhere accessible pass the content of th
7474

7575
[source,go]
7676
------------------------------------
77-
cert, _ := ioutil.ReadFile("/path/to/http_ca.crt")
77+
cert, _ := os.ReadFile("/path/to/http_ca.crt")
7878
7979
cfg := elasticsearch.Config{
8080
Addresses: []string{

.doc/typedapi/examples/indexing.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ The standard way of indexing a document is to provide a `struct` to the `Request
88
document := struct {
99
Id int `json:"id"`
1010
Name string `json:"name"`
11-
Price int `json:"price"`
11+
Price int `json:"price"`
1212
}{
1313
Id: 1,
1414
Name: "Foo",
15-
Price: 10,
15+
Price: 10,
1616
}
1717
1818
res, err := es.Index("index_name").

0 commit comments

Comments
 (0)