@@ -752,6 +752,9 @@ extension Slice {
752752 ///
753753 /// - Precondition: `self.count` >= `source.count`
754754 ///
755+ /// - Note: The memory regions referenced by `source` and this buffer slice
756+ /// must not overlap.
757+ ///
755758 /// - Parameter source: A collection of elements to be used to
756759 /// initialize the buffer slice's storage.
757760 /// - Returns: The index one past the last element of the buffer slice
@@ -818,6 +821,9 @@ extension Slice {
818821 /// `startIndex`. If `source` contains as many elements as the buffer slice
819822 /// can hold, the returned index is the buffer slice's `endIndex`.
820823 ///
824+ /// - Note: The memory regions referenced by `source` and this buffer slice
825+ /// may overlap.
826+ ///
821827 /// - Precondition: `self.count` >= `source.count`
822828 ///
823829 /// - Parameter source: A collection of elements to be used to update
@@ -853,11 +859,13 @@ extension Slice {
853859 /// slice's `startIndex`. If `source` contains as many elements as the slice
854860 /// can hold, the returned index is equal to the slice's `endIndex`.
855861 ///
862+ /// - Note: The memory regions referenced by `source` and this buffer slice
863+ /// may overlap.
864+ ///
856865 /// - Precondition: `self.count` >= `source.count`
857866 ///
858867 /// - Parameter source: A buffer containing the values to copy.
859- /// The memory region underlying `source` must be initialized. The memory
860- /// regions referenced by `source` and this buffer may overlap.
868+ /// The memory region underlying `source` must be initialized.
861869 /// - Returns: The index one past the last element of the buffer slice
862870 /// initialized by this function.
863871 @inlinable
@@ -890,11 +898,13 @@ extension Slice {
890898 /// slice's `startIndex`. If `source` contains as many elements as the slice
891899 /// can hold, the returned index is equal to the slice's `endIndex`.
892900 ///
901+ /// - Note: The memory regions referenced by `source` and this buffer slice
902+ /// may overlap.
903+ ///
893904 /// - Precondition: `self.count` >= `source.count`
894905 ///
895906 /// - Parameter source: A buffer slice containing the values to copy.
896- /// The memory region underlying `source` must be initialized. The memory
897- /// regions referenced by `source` and this buffer slice may overlap.
907+ /// The memory region underlying `source` must be initialized.
898908 /// - Returns: The index one past the last element of the buffer slice
899909 /// initialized by this function.
900910 @inlinable
@@ -925,11 +935,13 @@ extension Slice {
925935 /// buffer's `startIndex`. If `source` contains as many elements as the buffer
926936 /// slice can hold, the returned index is equal to the slice's `endIndex`.
927937 ///
938+ /// - Note: The memory regions referenced by `source` and this buffer slice
939+ /// must not overlap.
940+ ///
928941 /// - Precondition: `self.count` >= `source.count`
929942 ///
930943 /// - Parameter source: A buffer containing the values to move.
931- /// The memory region underlying `source` must be initialized. The memory
932- /// regions referenced by `source` and this buffer slice must not overlap.
944+ /// The memory region underlying `source` must be initialized.
933945 /// - Returns: An index one past the index of the last element updated.
934946 @inlinable
935947 @_alwaysEmitIntoClient
@@ -959,11 +971,13 @@ extension Slice {
959971 /// buffer's `startIndex`. If `source` contains as many elements as the buffer
960972 /// slice can hold, the returned index is equal to the slice's `endIndex`.
961973 ///
974+ /// - Note: The memory regions referenced by `source` and this buffer slice
975+ /// must not overlap.
976+ ///
962977 /// - Precondition: `self.count` >= `source.count`
963978 ///
964979 /// - Parameter source: A buffer slice containing the values to move.
965- /// The memory region underlying `source` must be initialized. The memory
966- /// regions referenced by `source` and this buffer slice must not overlap.
980+ /// The memory region underlying `source` must be initialized.
967981 /// - Returns: An index one past the index of the last element updated.
968982 @inlinable
969983 @_alwaysEmitIntoClient
0 commit comments