Skip to content

Commit f56fd39

Browse files
committed
Fix build failure
1 parent 65815ae commit f56fd39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/FoundationEssentialsTests/AttributedString/AttributedStringTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2346,7 +2346,7 @@ E {
23462346
let attrStr = AttributedString(str)
23472347
let nsRange = NSRange(location: 8, length: 1) // Just the "e" without the accent
23482348

2349-
let strRange = try #require(Range<String.Index>(nsRange, in: str))
2349+
let strRange = Range<String.Index>(nsRange, in: str)
23502350
#expect(strRange != nil)
23512351
#expect(strRange == str.unicodeScalars.index(str.startIndex, offsetBy: 8) ..< str.unicodeScalars.index(str.startIndex, offsetBy: 9))
23522352
#expect(str[strRange!] == "e")

0 commit comments

Comments
 (0)