From 354b58fae4cd002f30ac2c8c7c4c4d3b9bbcfbdd Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Wed, 18 Sep 2024 19:13:53 +0800 Subject: [PATCH] Fix typo in `string_get_character_breaks()` sample code --- doc/classes/TextServer.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/classes/TextServer.xml b/doc/classes/TextServer.xml index 9d476691bfd..aed041c5ad1 100644 --- a/doc/classes/TextServer.xml +++ b/doc/classes/TextServer.xml @@ -1732,7 +1732,7 @@ Returns array of the composite character boundaries. [codeblock] var ts = TextServerManager.get_primary_interface() - print(ts.string_get_word_breaks("Test ❤️‍🔥 Test")) # Prints [1, 2, 3, 4, 5, 9, 10, 11, 12, 13, 14] + print(ts.string_get_character_breaks("Test ❤️‍🔥 Test")) # Prints [1, 2, 3, 4, 5, 9, 10, 11, 12, 13, 14] [/codeblock]