Skip to content

Commit 354b58f

Browse files
committed
Fix typo in string_get_character_breaks() sample code
1 parent 84dcdde commit 354b58f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/classes/TextServer.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1732,7 +1732,7 @@
17321732
Returns array of the composite character boundaries.
17331733
[codeblock]
17341734
var ts = TextServerManager.get_primary_interface()
1735-
print(ts.string_get_word_breaks("Test ❤️‍🔥 Test")) # Prints [1, 2, 3, 4, 5, 9, 10, 11, 12, 13, 14]
1735+
print(ts.string_get_character_breaks("Test ❤️‍🔥 Test")) # Prints [1, 2, 3, 4, 5, 9, 10, 11, 12, 13, 14]
17361736
[/codeblock]
17371737
</description>
17381738
</method>

0 commit comments

Comments
 (0)