From 04767a22655d299e15c31237132f09eb4ecccc9f Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Mon, 13 Jan 2025 06:58:59 -0800 Subject: [PATCH] Clarify index parameters (#10830) --- xml/System/Array.xml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/xml/System/Array.xml b/xml/System/Array.xml index 8439dc10e5f..2d3e36b4071 100644 --- a/xml/System/Array.xml +++ b/xml/System/Array.xml @@ -1471,9 +1471,9 @@ The that contains the data to copy. - A 32-bit integer that represents the index in the at which copying begins. + A 32-bit integer that represents the index in at which copying begins. The that receives the data. - A 32-bit integer that represents the index in the at which storing begins. + A 32-bit integer that represents the index in at which storing begins. A 32-bit integer that represents the number of elements to copy. Copies a range of elements from an starting at the specified source index and pastes them to another starting at the specified destination index. Guarantees that all changes are undone if the copy does not succeed completely. @@ -1490,11 +1490,11 @@ This method is equivalent to the standard C/C++ function `memmove`, not `memcpy`. - The arrays can be reference-type arrays or value-type arrays. If `sourceArray` and `destinationArray` are both reference-type arrays or are both arrays of type , a shallow copy is performed. A shallow copy of an is a new containing references to the same elements as the original . The elements themselves or anything referenced by the elements are not copied. In contrast, a deep copy of an copies the elements and everything directly or indirectly referenced by the elements. + The arrays can be reference-type or value-type arrays. If `sourceArray` and `destinationArray` are both reference-type arrays or are both arrays of type , a shallow copy is performed. A shallow copy of an is a new containing references to the same elements as the original . The elements themselves or anything referenced by the elements are not copied. In contrast, a deep copy of an copies the elements and everything directly or indirectly referenced by the elements. If this method throws an exception while copying, the `destinationArray` remains unchanged; therefore, can be used within a constrained execution region (). - This method is an O(`n`) operation, where `n` is `length`. + This method is an $O(n)$ operation, where $n$ is `length`. ]]> @@ -1945,9 +1945,9 @@ The that contains the data to copy. - A 32-bit integer that represents the index in the at which copying begins. + A 32-bit integer that represents the index in at which copying begins. The that receives the data. - A 32-bit integer that represents the index in the at which storing begins. + A 32-bit integer that represents the index in at which storing begins. A 32-bit integer that represents the number of elements to copy. Copies a range of elements from an starting at the specified source index and pastes them to another starting at the specified destination index. The length and the indexes are specified as 32-bit integers. @@ -2072,9 +2072,9 @@ The that contains the data to copy. - A 64-bit integer that represents the index in the at which copying begins. + A 64-bit integer that represents the index in at which copying begins. The that receives the data. - A 64-bit integer that represents the index in the at which storing begins. + A 64-bit integer that represents the index in at which storing begins. A 64-bit integer that represents the number of elements to copy. The integer must be between zero and Int32.MaxValue, inclusive. Copies a range of elements from an starting at the specified source index and pastes them to another starting at the specified destination index. The length and the indexes are specified as 64-bit integers. @@ -2232,7 +2232,7 @@ The one-dimensional array that is the destination of the elements copied from the current array. - A 32-bit integer that represents the index in at which copying begins. + A 32-bit integer that represents the index in the destination array at which copying begins. Copies all the elements of the current one-dimensional array to the specified one-dimensional array starting at the specified destination array index. The index is specified as a 32-bit integer. The one-dimensional array that is the destination of the elements copied from the current array. - A 64-bit integer that represents the index in at which copying begins. + A 64-bit integer that represents the index in the destination array at which copying begins. Copies all the elements of the current one-dimensional array to the specified one-dimensional array starting at the specified destination array index. The index is specified as a 64-bit integer. The type of the elements of the array. - The to be filled. + The array to be filled. The new value for the elements in the specified range. - A 32-bit integer that represents the index in the at which filling begins. + A 32-bit integer that represents the index in at which filling begins. The number of elements to copy. - Assigns the given of type to the elements of the specified which are + Assigns the given of type to the elements of the specified that are within the range of (inclusive) and the next number of indices. To be added.