소스 검색

Merge pull request #97033 from Daylily-Zeleen/daylily-zeleen/fix_sort_custom_description

Fix description of `Array.sort_custom()`.
Rémi Verschelde 1 년 전
부모
커밋
c86fcccf68
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      doc/classes/Array.xml

+ 1 - 1
doc/classes/Array.xml

@@ -714,7 +714,7 @@
 			<param index="0" name="func" type="Callable" />
 			<description>
 				Sorts the array using a custom [Callable].
-				[param func] is called as many times as necessary, receiving two array elements as arguments. The function should return [code]true[/code] if the first element should be moved [i]behind[/i] the second one, otherwise it should return [code]false[/code].
+				[param func] is called as many times as necessary, receiving two array elements as arguments. The function should return [code]true[/code] if the first element should be moved [i]before[/i] the second one, otherwise it should return [code]false[/code].
 				[codeblock]
 				func sort_ascending(a, b):
 				    if a[1] &lt; b[1]: