File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -664,14 +664,14 @@ extension RawSpan {
664
664
unsafe ( self . _pointer == other. _pointer) && ( self . _count == other. _count)
665
665
}
666
666
667
- /// Returns the offsets where the memory of `span ` is located within
667
+ /// Returns the offsets where the memory of `other ` is located within
668
668
/// the memory represented by `self`
669
669
///
670
- /// Note: `span ` must be a subrange of `self`
670
+ /// Note: `other ` must be a subrange of `self`
671
671
///
672
- /// Parameters:
673
- /// - span : a subrange of `self`
674
- /// Returns: A range of offsets within `self`
672
+ /// - Parameters:
673
+ /// - other : a subrange of `self`
674
+ /// - Returns: A range of offsets within `self`
675
675
@_alwaysEmitIntoClient
676
676
public func byteOffsets( of other: borrowing Self ) -> Range < Int > ? {
677
677
if other. _count > _count { return nil }
Original file line number Diff line number Diff line change @@ -714,12 +714,12 @@ extension Span where Element: ~Copyable {
714
714
unsafe ( self . _pointer == other. _pointer) && ( self . _count == other. _count)
715
715
}
716
716
717
- /// Returns the indices within `self` where the memory represented by `span `
718
- /// is located, or `nil` if `span ` is not located within `self`.
717
+ /// Returns the indices within `self` where the memory represented by `other `
718
+ /// is located, or `nil` if `other ` is not located within `self`.
719
719
///
720
- /// Parameters:
721
- /// - span : a span that may be a subrange of `self`
722
- /// Returns: A range of indices within `self`, or `nil`
720
+ /// - Parameters:
721
+ /// - other : a span that may be a subrange of `self`
722
+ /// - Returns: A range of indices within `self`, or `nil`
723
723
@_alwaysEmitIntoClient
724
724
public func indices( of other: borrowing Self ) -> Range < Index > ? {
725
725
if other. _count > _count { return nil }
You can’t perform that action at this time.
0 commit comments