From 56aa959fc75142bc48dbdeba8655ea5f275587a7 Mon Sep 17 00:00:00 2001 From: Anton Xu Date: Thu, 30 Oct 2025 15:14:54 +0100 Subject: [PATCH] Fix minor typo in RestClient Signed-off-by: Anton Xu --- .../main/java/org/springframework/web/client/RestClient.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}