Browse Source

Fix a typo in ResponseEntity documentation

Closes gh-28647
pull/28652/head
Sébastien Deleuze 4 years ago
parent
commit
f1c00dd8a6
  1. 2
      src/docs/asciidoc/web/webflux.adoc
  2. 2
      src/docs/asciidoc/web/webmvc.adoc

2
src/docs/asciidoc/web/webflux.adoc

@ -2975,7 +2975,7 @@ configure or customize message writing. @@ -2975,7 +2975,7 @@ configure or customize message writing.
public ResponseEntity<String> handle() {
String body = ... ;
String etag = ... ;
return ResponseEntity.ok().eTag(etag).build(body);
return ResponseEntity.ok().eTag(etag).body(body);
}
----
[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]

2
src/docs/asciidoc/web/webmvc.adoc

@ -3386,7 +3386,7 @@ See <<mvc-ann-jackson>> for details. @@ -3386,7 +3386,7 @@ See <<mvc-ann-jackson>> for details.
public ResponseEntity<String> handle() {
String body = ... ;
String etag = ... ;
return ResponseEntity.ok().eTag(etag).build(body);
return ResponseEntity.ok().eTag(etag).body(body);
}
----
[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]

Loading…
Cancel
Save