Skip to content

Commit 776e0a6

Browse files
author
Dave Abrahams
committed
[stdlib] Make a generic more idiomatic
NFC
1 parent fc35aca commit 776e0a6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

stdlib/public/core/Unicode.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -591,12 +591,10 @@ public func transcode<Input, InputEncoding, OutputEncoding>(
591591
///
592592
/// Returns the index of the first unhandled code unit and the UTF-8 data
593593
/// that was encoded.
594-
internal func _transcodeSomeUTF16AsUTF8<Input>(
594+
internal func _transcodeSomeUTF16AsUTF8<Input : Collection>(
595595
_ input: Input, _ startIndex: Input.Index
596596
) -> (Input.Index, _StringCore._UTF8Chunk)
597-
where
598-
Input : Collection,
599-
Input.Iterator.Element == UInt16 {
597+
where Input.Iterator.Element == UInt16 {
600598

601599
typealias _UTF8Chunk = _StringCore._UTF8Chunk
602600

0 commit comments

Comments
 (0)