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:
Nate Cook authored and Karoy Lorentey committed 2026-03-02 16:38:48 -08:00
1 parent aa337b4caf
commit 54ca53612f
28 files changed
+143 -109

No files matched your search

@@ -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.