mirror of
https://github.com/apple/swift-collections
synced 2026-11-29 05:14:20 +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
+1
-1
@@ -130,7 +130,7 @@ extension SortedSet {
|
||||
///
|
||||
/// - Parameter index: The position of the key-value pair to remove. `index`
|
||||
/// must be a valid index of the sorted dictionary, and must not equal the sorted
|
||||
/// dictionary’s end index.
|
||||
/// dictionary's end index.
|
||||
/// - Returns: The key-value pair that correspond to `index`.
|
||||
/// - Complexity: O(`log n`) where `n` is the number of members in the
|
||||
/// sorted set.
|
||||
|
||||
Reference in new issue
Block a user