Skip to content

Commit 53f19ce

Browse files
committed
Proposal #6: move diffs for 'Repeated' to the correct section
1 parent dd8ec60 commit 53f19ce

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

proposals/0006-apply-api-guidelines-to-the-standard-library.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,12 @@ public struct OpaquePointer : ... {
435435
method instead.
436436

437437
```diff
438+
extension Repeated {
439+
- public init(count: Int, repeatedValue: Element)
440+
}
441+
+/// Return a collection containing `n` repetitions of `elementInstance`.
442+
+public func repeatElement<T>(element: T, count n: Int) -> Repeated<T>
443+
438444
public struct LazyMapSequence<Base : Sequence, Element> : ... {
439445
// Call `.lazy.map` on the sequence instead.
440446
- public init(_ base: Base, transform: (Base.Generator.Element) -> Element)
@@ -848,12 +854,6 @@ public struct OpaquePointer : ... {
848854
-public struct Repeat<Element> : ... { ... }
849855
+public struct Repeated<Element> : ... { ... }
850856

851-
extension Repeated {
852-
- public init(count: Int, repeatedValue: Element)
853-
}
854-
+/// Return a collection containing `n` repetitions of `elementInstance`.
855-
+public func repeatElement<T>(element: T, count n: Int) -> Repeated<T>
856-
857857
public struct StaticString : ... {
858858
- public var byteSize: Int { get }
859859
+ public var utf8CodeUnitCount: Int { get }

0 commit comments

Comments
 (0)