Skip to content

Commit

Permalink
Update to Swift 5.5
Browse files Browse the repository at this point in the history
* Adds missing subscript conformance for AnyString
  • Loading branch information
kdubb committed Sep 10, 2021
1 parent 876ff4a commit 14e926f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/PotentASN1/AnyString.swift
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ extension AnyString: StringProtocol {
public subscript(position: String.Index) -> Character {
return storage[position]
}

public subscript(bounds: Range<String.Index>) -> Substring {
return storage[bounds]
}

public func index(before i: String.Index) -> String.Index {
return storage.index(before: i)
Expand Down

0 comments on commit 14e926f

Please sign in to comment.