We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d76486d commit c240fcaCopy full SHA for c240fca
Sources/Foundation/DispatchData+DataProtocol.swift
@@ -34,7 +34,7 @@ extension DispatchData : DataProtocol {
34
}
35
36
public subscript(position: DispatchData.Index) -> UInt8 {
37
- precondition(index <= position && position <= index + bytes.count)
+ precondition(index <= position && position < index + bytes.count)
38
return bytes[position - index]
39
40
0 commit comments