Skip to content

Commit

Permalink
Fix syntax error in RestClient documentation
Browse files Browse the repository at this point in the history
Closes gh-33350
  • Loading branch information
crusherd authored and sbrannen committed Aug 8, 2024
1 parent a0edf12 commit a31945f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ String result = restClient.get() <1>
.uri("https://example.com/this-url-does-not-exist") <1>
.retrieve()
.onStatus(HttpStatusCode::is4xxClientError, (request, response) -> { <2>
throw new MyCustomRuntimeException(response.getStatusCode(), response.getHeaders()) <3>
throw new MyCustomRuntimeException(response.getStatusCode(), response.getHeaders()); <3>
})
.body(String.class);
----
Expand Down

0 comments on commit a31945f

Please sign in to comment.