瀏覽代碼

Fix typo in `string_get_character_breaks()` sample code

Haoyu Qiu 11 月之前
父節點
當前提交
354b58fae4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      doc/classes/TextServer.xml

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