Merge pull request #3502 from ARtemachka/master

Fix typo in core_builtin
This commit is contained in:
gingerBill
2024-06-28 12:00:10 +01:00
committed by GitHub
+2 -2
View File
@@ -65,7 +65,7 @@ copy :: proc{copy_slice, copy_from_string}
// with the old value, and reducing the length of the dynamic array by 1. // with the old value, and reducing the length of the dynamic array by 1.
// //
// Note: This is an O(1) operation. // Note: This is an O(1) operation.
// Note: If you the elements to remain in their order, use `ordered_remove`. // Note: If you want the elements to remain in their order, use `ordered_remove`.
// Note: If the index is out of bounds, this procedure will panic. // Note: If the index is out of bounds, this procedure will panic.
@builtin @builtin
unordered_remove :: proc(array: ^$D/[dynamic]$T, index: int, loc := #caller_location) #no_bounds_check { unordered_remove :: proc(array: ^$D/[dynamic]$T, index: int, loc := #caller_location) #no_bounds_check {
@@ -79,7 +79,7 @@ unordered_remove :: proc(array: ^$D/[dynamic]$T, index: int, loc := #caller_loca
// `ordered_remove` removed the element at the specified `index` whilst keeping the order of the other elements. // `ordered_remove` removed the element at the specified `index` whilst keeping the order of the other elements.
// //
// Note: This is an O(N) operation. // Note: This is an O(N) operation.
// Note: If you the elements do not have to remain in their order, prefer `unordered_remove`. // Note: If the elements do not have to remain in their order, prefer `unordered_remove`.
// Note: If the index is out of bounds, this procedure will panic. // Note: If the index is out of bounds, this procedure will panic.
@builtin @builtin
ordered_remove :: proc(array: ^$D/[dynamic]$T, index: int, loc := #caller_location) #no_bounds_check { ordered_remove :: proc(array: ^$D/[dynamic]$T, index: int, loc := #caller_location) #no_bounds_check {