@@ -288,14 +288,14 @@ extension RawSpan {
288288
289289 /// Unsafely create a `RawSpan` over initialized memory.
290290 ///
291- /// The region of memory representing `byteCount` bytes starting at `pointer`
291+ /// The region of memory representing `count` elements starting at `pointer`
292292 /// must remain valid, initialized and immutable
293293 /// throughout the lifetime of the newly-created `RawSpan`.
294294 /// Failure to maintain this invariant results in undefined behaviour.
295295 ///
296296 /// - Parameters:
297297 /// - pointer: a pointer to the first initialized byte.
298- /// - byteCount : the number of initialized bytes in the span.
298+ /// - count : the number of initialized elements in the span.
299299 @unsafe
300300 @_alwaysEmitIntoClient
301301 @lifetime ( borrow pointer)
@@ -561,7 +561,7 @@ extension RawSpan {
561561 @unsafe
562562 @_alwaysEmitIntoClient
563563 public func unsafeLoad< T> (
564- fromByteOffset offset: Int = 0 , as: T . Type
564+ fromByteOffset offset: Int = 0 , as type : T . Type
565565 ) -> T {
566566 _precondition (
567567 UInt ( bitPattern: offset) <= UInt ( bitPattern: _count) &&
@@ -592,7 +592,7 @@ extension RawSpan {
592592 @unsafe
593593 @_alwaysEmitIntoClient
594594 public func unsafeLoad< T> (
595- fromUncheckedByteOffset offset: Int , as: T . Type
595+ fromUncheckedByteOffset offset: Int , as type : T . Type
596596 ) -> T {
597597 unsafe _start( ) . load ( fromByteOffset: offset, as: T . self)
598598 }
@@ -616,7 +616,7 @@ extension RawSpan {
616616 @unsafe
617617 @_alwaysEmitIntoClient
618618 public func unsafeLoadUnaligned< T: BitwiseCopyable > (
619- fromByteOffset offset: Int = 0 , as: T . Type
619+ fromByteOffset offset: Int = 0 , as type : T . Type
620620 ) -> T {
621621 _precondition (
622622 UInt ( bitPattern: offset) <= UInt ( bitPattern: _count) &&
@@ -648,7 +648,7 @@ extension RawSpan {
648648 @unsafe
649649 @_alwaysEmitIntoClient
650650 public func unsafeLoadUnaligned< T: BitwiseCopyable > (
651- fromUncheckedByteOffset offset: Int , as: T . Type
651+ fromUncheckedByteOffset offset: Int , as type : T . Type
652652 ) -> T {
653653 unsafe _start( ) . loadUnaligned ( fromByteOffset: offset, as: T . self)
654654 }
@@ -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 }
0 commit comments