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

@@ -45,7 +45,7 @@ extension BitArray: RandomAccessCollection, MutableCollection {
@inlinable @inline(__always)
public var startIndex: Int { 0 }
/// The collection’s “past the end” position--that is, the position one step
/// The collection's "past the end" position--that is, the position one step
/// after the last valid subscript argument.
///
/// - Complexity: O(1)