Skip to content

Commit 1962cfa

Browse files
[docs] Fix various syntax and rendering errors (#1001)
* fix various syntax and rendering issues * more fixes
1 parent 0fed45c commit 1962cfa

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

docs/reference/transport/rest-client/sniffer/maven_repository.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Here is how you can configure the dependency using maven as a dependency manager
2929

3030
Here is how you can configure the dependency using gradle as a dependency manager. Add the following to your `build.gradle` file:
3131

32-
```groovy
32+
```groovy subs=true
3333
dependencies {
3434
compile 'org.elasticsearch.client:elasticsearch-rest-client-sniffer:{{version}}'
3535
}

docs/reference/transport/rest-client/usage/maven.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Here is how you can configure the dependency using maven as a dependency manager
3131

3232
Here is how you can configure the dependency using gradle as a dependency manager. Add the following to your `build.gradle` file:
3333

34-
```groovy
34+
```groovy subs=true
3535
dependencies {
3636
compile 'org.elasticsearch.client:elasticsearch-rest-client:{{version}}'
3737
}

docs/reference/transport/rest-client/usage/requests.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -163,20 +163,17 @@ Cancellable cancellable = restClient.performRequestAsync(
163163
new ResponseListener() {
164164
@Override
165165
public void onSuccess(Response response) {
166-
<1>
166+
// Process the returned response, in case it was
167+
// ready before the request got cancelled
167168
}
168169

169170
@Override
170171
public void onFailure(Exception exception) {
171-
<2>
172+
// Handle the returned exception, which will most
173+
// likely be a `CancellationException` as the request
174+
// got cancelled
172175
}
173176
}
174177
);
175178
cancellable.cancel();
176179
```
177-
178-
1. Process the returned response, in case it was ready before the request got cancelled
179-
2. Handle the returned exception, which will most likely be a `CancellationException` as the request got cancelled
180-
181-
182-

0 commit comments

Comments
 (0)