Skip to content

Commit e2f96a0

Browse files
committed
Fix up the type to build with Swift 4.2 also.
1 parent 5805ef3 commit e2f96a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftProtobuf/TextFormatScanner.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ private func uint32FromHexDigit(_ c: UInt8) -> UInt32? {
9595
private func decodeString(_ s: String) -> String? {
9696

9797
// Helper to read 4 hex digits as a UInt32
98-
func read4HexDigits(_ i: inout IndexingIterator<String.UTF8View>) -> UInt32? {
98+
func read4HexDigits(_ i: inout String.UTF8View.Iterator) -> UInt32? {
9999
if let digit1 = i.next(),
100100
let d1 = uint32FromHexDigit(digit1),
101101
let digit2 = i.next(),

0 commit comments

Comments
 (0)