Skip to content

Commit b1ebc5c

Browse files
author
Dave Abrahams
committed
[stdlib] Inline legacy UTF8.decode
1 parent a9c8d41 commit b1ebc5c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/public/core/Unicode.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ extension _Unicode.UTF8 : UnicodeCodec {
190190
/// - Returns: A `UnicodeDecodingResult` instance, representing the next
191191
/// Unicode scalar, an indication of an error, or an indication that the
192192
/// UTF sequence has been fully decoded.
193+
@inline(__always)
193194
public mutating func decode<I : IteratorProtocol>(
194195
_ input: inout I
195196
) -> UnicodeDecodingResult where I.Element == CodeUnit {

0 commit comments

Comments
 (0)