We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ebb92c commit 4209461Copy full SHA for 4209461
Source/String_Extensions.swift
@@ -247,15 +247,15 @@
247
// Subscripts
248
//
249
250
- func `prefix`(through: Index) -> NativeString {
+ public func `prefix`(through: Index) -> NativeString {
251
return self[...through] // E119 Cannot use the unary operator "..." on type "extension String.Index"
252
}
253
254
- func `prefix`(upTo: Index) -> NativeString {
+ public func `prefix`(upTo: Index) -> NativeString {
255
return self[..<upTo] // E119 Cannot use the unary operator "..<" on type "extension String.Index"
256
257
258
- func suffix(from: Index) -> NativeString {
+ public func suffix(from: Index) -> NativeString {
259
return self[from...]
260
261
0 commit comments