Skip to content

Commit 43ead66

Browse files
committed
Fix doc comment
1 parent 4129383 commit 43ead66

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

stdlib/public/core/Span/RawSpan.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -664,14 +664,14 @@ extension RawSpan {
664664
unsafe (self._pointer == other._pointer) && (self._count == other._count)
665665
}
666666

667-
/// Returns the offsets where the memory of `span` is located within
667+
/// Returns the offsets where the memory of `other` is located within
668668
/// the memory represented by `self`
669669
///
670-
/// Note: `span` must be a subrange of `self`
670+
/// Note: `other` must be a subrange of `self`
671671
///
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`
675675
@_alwaysEmitIntoClient
676676
public func byteOffsets(of other: borrowing Self) -> Range<Int>? {
677677
if other._count > _count { return nil }

stdlib/public/core/Span/Span.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -714,12 +714,12 @@ extension Span where Element: ~Copyable {
714714
unsafe (self._pointer == other._pointer) && (self._count == other._count)
715715
}
716716

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`.
719719
///
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`
723723
@_alwaysEmitIntoClient
724724
public func indices(of other: borrowing Self) -> Range<Index>? {
725725
if other._count > _count { return nil }

0 commit comments

Comments
 (0)