Skip to content

Commit 0fd56d6

Browse files
HearenChristoph Büscher
authored and
Christoph Büscher
committed
[Docs] Fix a code snippet about generating JSON xcontent (#46164)
1 parent 9bf5125 commit 0fd56d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/java-api/docs/index_.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ If you need to see the generated JSON content, you can use the
103103

104104
[source,java]
105105
--------------------------------------------------
106-
String json = builder.string();
106+
String json = Strings.toString(builder);
107107
--------------------------------------------------
108108

109109

0 commit comments

Comments
 (0)