Skip to content

Commit 5a0fcfc

Browse files
committed
Proposal #6: more API diffs
1 parent 60c3f94 commit 5a0fcfc

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -736,17 +736,17 @@ public struct OpaquePointer : ... {
736736
// Changes to this protocol affect `Array`, `ArraySlice`, `ContiguousArray` and
737737
// other types.
738738
public protocol RangeReplaceableCollection : ... {
739-
+ public init(repeating: Element, count: Int)
739+
+ public init(repeating: Iterator.Element, count: Int)
740740

741741
- mutating func replaceRange<
742742
+ mutating func replaceSubrange<
743-
C : CollectionType where C.Iterator.Element == Generator.Element
743+
C : CollectionType where C.Iterator.Element == Iterator.Element
744744
>(
745745
subRange: Range<Int>, with newElements: C
746746
)
747747

748-
- mutating func insert(newElement: Element, atIndex i: Int)
749-
+ mutating func insert(newElement: Element, at i: Int)
748+
- mutating func insert(newElement: Iterator.Element, atIndex i: Int)
749+
+ mutating func insert(newElement: Iterator.Element, at i: Int)
750750

751751
- mutating func removeAtIndex(index: Int) -> Element
752752
+ mutating func removeAt(index: Int) -> Element
@@ -777,7 +777,7 @@ public struct OpaquePointer : ... {
777777

778778
- public mutating func replaceRange<
779779
+ mutating func replaceSubrange<
780-
C: CollectionType where C.Generator.Element == Character
780+
C: CollectionType where C.Iterator.Element == Character
781781
>(
782782
subRange: Range<Index>, with newElements: C
783783
)
@@ -863,9 +863,9 @@ public struct OpaquePointer : ... {
863863
}
864864

865865
public func transcode<
866-
Input : GeneratorType,
867-
InputEncoding : UnicodeCodecType,
868-
OutputEncoding : UnicodeCodecType
866+
Input : IteratorProtocol,
867+
InputEncoding : UnicodeCodec,
868+
OutputEncoding : UnicodeCodec
869869
where InputEncoding.CodeUnit == Input.Element>(
870870
inputEncoding: InputEncoding.Type, _ outputEncoding: OutputEncoding.Type,
871871
_ input: Input, _ output: (OutputEncoding.CodeUnit) -> Void,

0 commit comments

Comments
 (0)