Skip to content

Commit 5567a0a

Browse files
committed
Typed throws on the skip function
1 parent b9ceb37 commit 5567a0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/CBOR/CBORReader.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ struct CBORReader {
4545
}
4646

4747
/// Skip a specified number of bytes
48-
mutating func skip(_ count: Int) throws {
48+
mutating func skip(_ count: Int) throws(CBORError) {
4949
guard index + count <= data.count else {
5050
throw CBORError.prematureEnd
5151
}

0 commit comments

Comments
 (0)