mirror of
https://github.com/apple/swift-collections
synced 2026-11-27 04:54:21 +00:00
a few corrections
This commit is contained in:
1 parent
9e9da25425
commit
637518426d
2 files changed
+13
-13
No files matched your search
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user