summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2024-09-18 19:13:53 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2024-09-18 19:14:32 +0800
commit354b58fae4cd002f30ac2c8c7c4c4d3b9bbcfbdd (patch)
tree9d5d62e7bd41bb2cac98907cfdf7a9f3c1840e85
parent84dcdde9088d512efebb0033fb881d8f7fd9c107 (diff)
downloadredot-engine-354b58fae4cd002f30ac2c8c7c4c4d3b9bbcfbdd.tar.gz
Fix typo in `string_get_character_breaks()` sample code
-rw-r--r--doc/classes/TextServer.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/classes/TextServer.xml b/doc/classes/TextServer.xml
index 9d476691bf..aed041c5ad 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]
</description>
</method>