Skip to content

Commit 551a691

Browse files
committed
Fix UnicodeDecoders prototype test
1 parent 55da916 commit 551a691

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Prototypes/UnicodeDecoders.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ extension Unicode {
3939
struct DefaultScalarView<
4040
CodeUnits: BidirectionalCollection,
4141
Encoding: Unicode.Encoding
42-
> where CodeUnits.Iterator.Element == Encoding.CodeUnit {
42+
> where CodeUnits.Element == Encoding.CodeUnit {
4343
var codeUnits: CodeUnits
4444
init(
4545
_ codeUnits: CodeUnits,
@@ -240,7 +240,7 @@ func checkDecodeUTF<Codec : UnicodeCodec & Unicode.Encoding>(
240240
var result = assertionSuccess()
241241

242242
func check<C: Collection>(_ expected: C, _ description: String)
243-
where C.Iterator.Element == UInt32
243+
where C.Element == UInt32
244244
{
245245
if !expected.elementsEqual(decoded) {
246246
if result.description == "" { result = assertionFailure() }

0 commit comments

Comments
 (0)