Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions stdlib/public/core/Span/RawSpan.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ public struct RawSpan: ~Escapable, Copyable, BitwiseCopyable {

/// The starting address of this `RawSpan`.
///
/// `_pointer` can be `nil` if and only if `_count` equals 0.
/// Otherwise, `_pointer` must point to memory that will remain
/// valid and not mutated as long as this `Span` exists.
/// The memory at `_pointer` must consist of `_count` initialized bytes.
/// If `_count` is zero, `_pointer` may point to valid memory or it may be `nil`,
/// but no accesses may be performed through it. Otherwise, `_pointer` must point
/// to initialized memory containing `_count` bytes, which must remain valid and
/// not be mutated during the lifetime of this `RawSpan`.
@usableFromInline
internal let _pointer: UnsafeRawPointer?

Expand Down
9 changes: 4 additions & 5 deletions stdlib/public/core/Span/Span.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,10 @@ public struct Span<Element: ~Copyable>: ~Escapable, Copyable, BitwiseCopyable {

/// The starting address of this `Span`.
///
/// `_pointer` can be `nil` if and only if `_count` equals 0.
/// Otherwise, `_pointer` must point to memory that will remain
/// valid and not mutated as long as this `Span` exists.
/// The memory at `_pointer` must be initialized
/// as `_count` instances of `Element`.
/// If `_count` is zero, `_pointer` may point to valid memory or it may be `nil`,
/// but no accesses may be performed through it. Otherwise, `_pointer` must point
/// to initialized memory containing `_count` instances of `Element`, which must
/// remain valid and not be mutated during the lifetime of this `Span`.
@usableFromInline
internal let _pointer: UnsafeRawPointer?

Expand Down