Skip to content

Commit 2e9f9cc

Browse files
committed
Tweak a test (silence a warning)
1 parent 74c32fc commit 2e9f9cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/FoundationEssentialsTests/DataTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1767,7 +1767,7 @@ private final class DataTests {
17671767
let byteCount = span.byteCount
17681768
#expect(byteCount == count)
17691769
let v = UInt8.random(in: 10..<100)
1770-
var sub = span.extracting(i..<i+1)
1770+
var sub = span._mutatingExtracting(i..<i+1)
17711771
sub.storeBytes(of: v, as: UInt8.self)
17721772
#expect(source[i] == v)
17731773
}

0 commit comments

Comments
 (0)