Skip to content

Commit 6ccf4ff

Browse files
HearenChristoph Büscher
authored and
Christoph Büscher
committed
[Docs] Fix a code snippet about generating JSON xcontent (#46164)
1 parent 5614a46 commit 6ccf4ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/java-api/docs/index_.asciidoc

+1-1
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)