File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -472,6 +472,8 @@ extension RawSpan {
472
472
/// during the execution of `withUnsafeBytes(_:)`.
473
473
/// Do not store or return the pointer for later use.
474
474
///
475
+ /// Note: For an empty `RawSpan`, the closure always receives a `nil` pointer.
476
+ ///
475
477
/// - Parameter body: A closure with an `UnsafeRawBufferPointer`
476
478
/// parameter that points to the viewed contiguous storage.
477
479
/// If `body` has a return value, that value is also
Original file line number Diff line number Diff line change @@ -622,6 +622,8 @@ extension Span where Element: ~Copyable {
622
622
/// during the execution of `withUnsafeBufferPointer(_:)`.
623
623
/// Do not store or return the pointer for later use.
624
624
///
625
+ /// Note: For an empty `Span`, the closure always receives a `nil` pointer.
626
+ ///
625
627
/// - Parameter body: A closure with an `UnsafeBufferPointer` parameter
626
628
/// that points to the viewed contiguous storage. If `body` has
627
629
/// a return value, that value is also used as the return value
@@ -654,6 +656,8 @@ extension Span where Element: BitwiseCopyable {
654
656
/// during the execution of `withUnsafeBytes(_:)`.
655
657
/// Do not store or return the pointer for later use.
656
658
///
659
+ /// Note: For an empty `Span`, the closure always receives a `nil` pointer.
660
+ ///
657
661
/// - Parameter body: A closure with an `UnsafeRawBufferPointer`
658
662
/// parameter that points to the viewed contiguous storage.
659
663
/// If `body` has a return value, that value is also
You can’t perform that action at this time.
0 commit comments