mirror of
https://github.com/apple/swift-collections
synced 2026-11-28 05:04:21 +00:00
Include notes about index mutation in span(after/before:)
The indexes passed to span(after:) and friends on UniqueArray and RigidArray are modified before return. This adds notes about the updated values to the method documentation, along with a few other minor formatting changes (dropping smart quotes, single-sentence abstracts).
This commit is contained in:
1 parent
aa337b4caf
commit
54ca53612f
28 files changed
+143
-109
No files matched your search
@@ -281,7 +281,7 @@ extension UniqueArray {
|
||||
/// array at the specified position.
|
||||
///
|
||||
/// The new elements are inserted before the element currently at the
|
||||
/// specified index. If you pass the array’s `endIndex` as the `index`
|
||||
/// specified index. If you pass the array's `endIndex` as the `index`
|
||||
/// parameter, then the new elements are appended to the end of the array.
|
||||
///
|
||||
/// All existing elements at or following the specified position are moved to
|
||||
@@ -311,7 +311,7 @@ extension UniqueArray {
|
||||
/// array at the specified position.
|
||||
///
|
||||
/// The new elements are inserted before the element currently at the
|
||||
/// specified index. If you pass the array’s `endIndex` as the `index`
|
||||
/// specified index. If you pass the array's `endIndex` as the `index`
|
||||
/// parameter, then the new elements are appended to the end of the array.
|
||||
///
|
||||
/// All existing elements at or following the specified position are moved to
|
||||
@@ -339,7 +339,7 @@ extension UniqueArray {
|
||||
/// Copies the elements of a span into this array at the specified position.
|
||||
///
|
||||
/// The new elements are inserted before the element currently at the
|
||||
/// specified index. If you pass the array’s `endIndex` as the `index`
|
||||
/// specified index. If you pass the array's `endIndex` as the `index`
|
||||
/// parameter, then the new elements are appended to the end of the array.
|
||||
///
|
||||
/// All existing elements at or following the specified position are moved to
|
||||
@@ -369,7 +369,7 @@ extension UniqueArray {
|
||||
/// position.
|
||||
///
|
||||
/// The new elements are inserted before the element currently at the
|
||||
/// specified index. If you pass the array’s `endIndex` as the `index`
|
||||
/// specified index. If you pass the array's `endIndex` as the `index`
|
||||
/// parameter, then the new elements are appended to the end of the array.
|
||||
///
|
||||
/// All existing elements at or following the specified position are moved to
|
||||
@@ -404,7 +404,7 @@ extension UniqueArray {
|
||||
/// position.
|
||||
///
|
||||
/// The new elements are inserted before the element currently at the
|
||||
/// specified index. If you pass the array’s `endIndex` as the `index`
|
||||
/// specified index. If you pass the array's `endIndex` as the `index`
|
||||
/// parameter, then the new elements are appended to the end of the array.
|
||||
///
|
||||
/// All existing elements at or following the specified position are moved
|
||||
@@ -436,7 +436,7 @@ extension UniqueArray {
|
||||
/// position.
|
||||
///
|
||||
/// The new elements are inserted before the element currently at the
|
||||
/// specified index. If you pass the array’s `endIndex` as the `index`
|
||||
/// specified index. If you pass the array's `endIndex` as the `index`
|
||||
/// parameter, then the new elements are appended to the end of the array.
|
||||
///
|
||||
/// All existing elements at or following the specified position are moved to
|
||||
|
||||
Reference in new issue
Block a user