@@ -1085,21 +1085,21 @@ pub fn array_positions(args: &[ArrayRef]) -> Result<ArrayRef> {
10851085 Ok ( res)
10861086}
10871087
1088- /// For each element of `list_array[i]`, replaces up to `arr_n[i]` occurences
1089- /// of `from_array[i]`, `to_array [i]`.
1088+ /// For each element of `list_array[i]`, removed up to `arr_n[i]` occurences
1089+ /// of `element_array [i]`.
10901090///
10911091/// The type of each **element** in `list_array` must be the same as the type of
1092- /// `from_array` and `to_array `. This function also handles nested arrays
1092+ /// `element_array `. This function also handles nested arrays
10931093/// ([`ListArray`] of [`ListArray`]s)
10941094///
1095- /// For example, whn called to replace a list array (where each element is a
1096- /// list of int32s, the second and third argument are int32 arrays, and the
1097- /// fourth argument is the number of occurrences to replace
1095+ /// For example, when called to remove a list array (where each element is a
1096+ /// list of int32s, the second argument are int32 arrays, and the
1097+ /// third argument is the number of occurrences to remove
10981098///
10991099/// ```text
1100- /// general_replace (
1101- /// [1, 2, 3, 2], 2, 10, 1 ==> [1, 10, 3, 2] (only the first 2 is replaced )
1102- /// [4, 5, 6, 5], 5, 20, 2 ==> [4, 20, 6, 20 ] (both 5s are replaced )
1100+ /// general_remove (
1101+ /// [1, 2, 3, 2], 2, 1 ==> [1, 3, 2] (only the first 2 is removed )
1102+ /// [4, 5, 6, 5], 5, 2 ==> [4, 6 ] (both 5s are removed )
11031103/// )
11041104/// ```
11051105fn general_remove (
@@ -1137,7 +1137,7 @@ fn general_remove(
11371137
11381138 list_array_row_inner
11391139 . iter ( )
1140- // compare element by element the current row of list_array
1140+ // compare element by element the current row of list_array
11411141 . map ( |row| row. map ( |row| row. ne ( & element_array_row_inner) ) )
11421142 . collect :: < BooleanArray > ( )
11431143 }
0 commit comments