diff --git a/Sources/Future/RawSpan.swift b/Sources/Future/RawSpan.swift index 5dcf499b..ef5cd4d1 100644 --- a/Sources/Future/RawSpan.swift +++ b/Sources/Future/RawSpan.swift @@ -35,7 +35,7 @@ extension RawSpan: Sendable {} extension RawSpan { - //FIXME: make failable once Optional can be non-escapable + //FIXME: make properly non-failable /// Unsafely create a `RawSpan` over initialized memory. /// /// The memory in `buffer` must be owned by the instance `owner`, @@ -160,7 +160,7 @@ extension RawSpan { /// - Parameter bounds: A valid range of positions. Every position in /// this range must be within the bounds of this `RawSpan`. /// - /// - Returns: A `Span` over the bytes within `bounds` + /// - Returns: A span over the bytes within `bounds` /// /// - Complexity: O(1) @inlinable @inline(__always) @@ -181,7 +181,7 @@ extension RawSpan { /// - Parameter bounds: A valid range of positions. Every position in /// this range must be within the bounds of this `RawSpan`. /// - /// - Returns: A `Span` over the bytes within `bounds` + /// - Returns: A span over the bytes within `bounds` /// /// - Complexity: O(1) @inlinable @inline(__always) @@ -203,7 +203,7 @@ extension RawSpan { /// - Parameter bounds: A valid range of positions. Every position in /// this range must be within the bounds of this `RawSpan`. /// - /// - Returns: A `Span` over the bytes within `bounds` + /// - Returns: A span over the bytes within `bounds` /// /// - Complexity: O(1) @_alwaysEmitIntoClient @@ -223,7 +223,7 @@ extension RawSpan { /// - Parameter bounds: A valid range of positions. Every position in /// this range must be within the bounds of this `RawSpan`. /// - /// - Returns: A `Span` over the bytes within `bounds` + /// - Returns: A span over the bytes within `bounds` /// /// - Complexity: O(1) @_alwaysEmitIntoClient @@ -239,7 +239,7 @@ extension RawSpan { /// slices, extracted spans do not generally share their indices with the /// span from which they are extracted. /// - /// - Returns: A `RawSpan` over all the items of this span. + /// - Returns: A span over all the bytes of this span. /// /// - Complexity: O(1) @_alwaysEmitIntoClient diff --git a/Sources/Future/Span.swift b/Sources/Future/Span.swift index b5efcdb8..80b983d3 100644 --- a/Sources/Future/Span.swift +++ b/Sources/Future/Span.swift @@ -43,7 +43,7 @@ extension UnsafePointer where Pointee: ~Copyable /*& ~Escapable*/ { extension Span where Element: ~Copyable /*& ~Escapable*/ { - //FIXME: make failable once Optional can be non-escapable + //FIXME: make properly non-failable /// Unsafely create a `Span` over initialized memory. /// /// The memory in `buffer` must be owned by the instance `owner`, @@ -90,7 +90,7 @@ extension Span where Element: ~Copyable /*& ~Escapable*/ { extension Span where Element: BitwiseCopyable { - //FIXME: make failable once Optional can be non-escapable + //FIXME: make properly non-failable /// Unsafely create a `Span` over initialized memory. /// /// The memory in `buffer` must be owned by the instance `owner`, @@ -130,7 +130,7 @@ extension Span where Element: BitwiseCopyable { self.init(_unchecked: start, count: count, owner: owner) } - //FIXME: make failable once Optional can be non-escapable + //FIXME: make properly non-failable /// Unsafely create a `Span` over initialized memory. /// /// The memory in `unsafeBytes` must be owned by the instance `owner` @@ -399,7 +399,7 @@ extension Span where Element: ~Copyable /*& ~Escapable*/ { /// - Parameter bounds: A valid range of positions. Every position in /// this range must be within the bounds of this `Span`. /// - /// - Returns: A `Span` over the items at `bounds` + /// - Returns: A `Span` over the items within `bounds` /// /// - Complexity: O(1) @inlinable @inline(__always) @@ -420,7 +420,7 @@ extension Span where Element: ~Copyable /*& ~Escapable*/ { /// - Parameter bounds: A valid range of positions. Every position in /// this range must be within the bounds of this `Span`. /// - /// - Returns: A `Span` over the items at `bounds` + /// - Returns: A `Span` over the items within `bounds` /// /// - Complexity: O(1) @inlinable @inline(__always) @@ -442,7 +442,7 @@ extension Span where Element: ~Copyable /*& ~Escapable*/ { /// - Parameter bounds: A valid range of positions. Every position in /// this range must be within the bounds of this `Span`. /// - /// - Returns: A `Span` over the items at `bounds` + /// - Returns: A `Span` over the items within `bounds` /// /// - Complexity: O(1) @_alwaysEmitIntoClient @@ -462,7 +462,7 @@ extension Span where Element: ~Copyable /*& ~Escapable*/ { /// - Parameter bounds: A valid range of positions. Every position in /// this range must be within the bounds of this `Span`. /// - /// - Returns: A `Span` over the items at `bounds` + /// - Returns: A `Span` over the items within `bounds` /// /// - Complexity: O(1) @_alwaysEmitIntoClient