Skip to content

Commit 1325309

Browse files
authored
Merge pull request #202 from ProtonIntel/data-set
Mark DataContainer.subscript as mutating set
2 parents 78aacf6 + 1a57eff commit 1325309

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/Bluetooth/Data.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public protocol DataContainer: RandomAccessCollection where Self.Index == Int, S
1818

1919
mutating func reserveCapacity(_ capacity: Int)
2020

21-
subscript(index: Int) -> UInt8 { get }
21+
subscript(index: Int) -> UInt8 { get mutating set }
2222

2323
mutating func append(_ newElement: UInt8)
2424

0 commit comments

Comments
 (0)