diff --git a/spring-web/src/main/java/org/springframework/web/client/RestClient.java b/spring-web/src/main/java/org/springframework/web/client/RestClient.java index fd6075bb42fc..2dc85e0867ce 100644 --- a/spring-web/src/main/java/org/springframework/web/client/RestClient.java +++ b/spring-web/src/main/java/org/springframework/web/client/RestClient.java @@ -990,7 +990,7 @@ interface ResponseSpec { /** * Provide a function to map specific error status codes to an error handler. *

By default, if there are no matching status handlers, responses with - * status codes >= 400 wil throw a {@link RestClientResponseException}. + * status codes >= 400 will throw a {@link RestClientResponseException}. *

Note that {@link IOException IOExceptions}, * {@link java.io.UncheckedIOException UncheckedIOExceptions}, and * {@link org.springframework.http.converter.HttpMessageNotReadableException HttpMessageNotReadableExceptions} @@ -1007,7 +1007,7 @@ ResponseSpec onStatus(Predicate statusPredicate, /** * Provide a function to map specific error status codes to an error handler. *

By default, if there are no matching status handlers, responses with - * status codes >= 400 wil throw a {@link RestClientResponseException}. + * status codes >= 400 will throw a {@link RestClientResponseException}. *

Note that {@link IOException IOExceptions}, * {@link java.io.UncheckedIOException UncheckedIOExceptions}, and * {@link org.springframework.http.converter.HttpMessageNotReadableException HttpMessageNotReadableExceptions}