Skip to content

Commit b3eb1a2

Browse files
no-brandsbrannen
authored andcommitted
Improve example in Javadoc for HttpEntity
Closes gh-27586
1 parent bce850a commit b3eb1a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-web/src/main/java/org/springframework/http/HttpEntity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* <pre class="code">
2929
* HttpHeaders headers = new HttpHeaders();
3030
* headers.setContentType(MediaType.TEXT_PLAIN);
31-
* HttpEntity&lt;String&gt; entity = new HttpEntity&lt;String&gt;(helloWorld, headers);
31+
* HttpEntity&lt;String&gt; entity = new HttpEntity&lt;String&gt;("helloWorld", headers);
3232
* URI location = template.postForLocation("https://example.com", entity);
3333
* </pre>
3434
* or

0 commit comments

Comments
 (0)