Skip to content

Commit 4209461

Browse files
committed
Visibility fix
1 parent 8ebb92c commit 4209461

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Source/String_Extensions.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,15 +247,15 @@
247247
// Subscripts
248248
//
249249

250-
func `prefix`(through: Index) -> NativeString {
250+
public func `prefix`(through: Index) -> NativeString {
251251
return self[...through] // E119 Cannot use the unary operator "..." on type "extension String.Index"
252252
}
253253

254-
func `prefix`(upTo: Index) -> NativeString {
254+
public func `prefix`(upTo: Index) -> NativeString {
255255
return self[..<upTo] // E119 Cannot use the unary operator "..<" on type "extension String.Index"
256256
}
257257

258-
func suffix(from: Index) -> NativeString {
258+
public func suffix(from: Index) -> NativeString {
259259
return self[from...]
260260
}
261261

0 commit comments

Comments
 (0)