Skip to content
This repository was archived by the owner on Feb 2, 2022. It is now read-only.

Commit 9ed62b2

Browse files
author
Jakob Mygind
committed
Fix Range intializer
1 parent 1cd6200 commit 9ed62b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Codemine/Extensions/String+Range.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public extension String {
5151

5252
switch searchType {
5353
case .leftToRight:
54-
return Range(firstRange.lowerBound..<secondRange.upperBound)
54+
return firstRange.lowerBound..<secondRange.upperBound
5555
default:
5656
print("Other search options not yet implemented.")
5757
}

0 commit comments

Comments
 (0)