Skip to content

Commit

Permalink
Merge pull request #97141 from timothyqiu/character-breaks
Browse files Browse the repository at this point in the history
Fix typo in `string_get_character_breaks()` sample code
  • Loading branch information
akien-mga committed Sep 18, 2024
2 parents d8a82a8 + 354b58f commit 694d3c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/classes/TextServer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 694d3c2

Please sign in to comment.