Skip to content

Commit 1b1e9d4

Browse files
[stdlib] Update InlineArray documentation (#82363)
Remove misleading big O notation from initializers.
1 parent ef934e0 commit 1b1e9d4

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

stdlib/public/core/InlineArray.swift

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,6 @@ extension InlineArray where Element: ~Copyable {
212212
///
213213
/// - Parameter body: A closure that returns an owned `Element` to emplace at
214214
/// the passed in index.
215-
///
216-
/// - Complexity: O(*n*), where *n* is the number of elements in the array.
217215
@available(SwiftStdlib 6.2, *)
218216
@_alwaysEmitIntoClient
219217
public init<E: Error>(_ body: (Index) throws(E) -> Element) throws(E) {
@@ -260,8 +258,6 @@ extension InlineArray where Element: ~Copyable {
260258
/// - next: A closure that takes an immutable borrow reference to the
261259
/// preceding element, and returns an owned `Element` instance to emplace
262260
/// into the array.
263-
///
264-
/// - Complexity: O(*n*), where *n* is the number of elements in the array.
265261
@available(SwiftStdlib 6.2, *)
266262
@_alwaysEmitIntoClient
267263
public init<E: Error>(
@@ -313,8 +309,6 @@ extension InlineArray where Element: Copyable {
313309
/// Initializes every element in this array to a copy of the given value.
314310
///
315311
/// - Parameter value: The instance to initialize this array with.
316-
///
317-
/// - Complexity: O(*n*), where *n* is the number of elements in the array.
318312
@available(SwiftStdlib 6.2, *)
319313
@_alwaysEmitIntoClient
320314
public init(repeating value: Element) {
@@ -525,7 +519,7 @@ extension InlineArray where Element: ~Copyable {
525519
}
526520

527521
//===----------------------------------------------------------------------===//
528-
// MARK: Span
522+
// MARK: - Span APIs
529523
//===----------------------------------------------------------------------===//
530524

531525
@available(SwiftStdlib 6.2, *)

0 commit comments

Comments
 (0)