You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: stdlib/public/core/UnavailableStringAPIs.swift.gyb
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -131,19 +131,19 @@ extension ${Index} {
131
131
@available(
132
132
*, unavailable,
133
133
message: "To advance an index by n steps call 'index(_:offsetBy:)' on the ${View} instance that produced the index.")
134
-
public func advancedBy(n: ${Distance}) -> ${Index} {
134
+
public func advancedBy(_ n: ${Distance}) -> ${Index} {
135
135
Builtin.unreachable()
136
136
}
137
137
@available(
138
138
*, unavailable,
139
139
message: "To advance an index by n steps stopping at a given limit call 'index(_:offsetBy:limitedBy:)' on ${View} instance that produced the index. Note that the Swift 3 API returns 'nil' when trying to advance past the limit; the Swift 2 API returned the limit.")
140
-
public func advancedBy(n: ${Distance}, limit: ${Index}) -> ${Index} {
140
+
public func advancedBy(_ n: ${Distance}, limit: ${Index}) -> ${Index} {
141
141
Builtin.unreachable()
142
142
}
143
143
@available(
144
144
*, unavailable,
145
145
message: "To find the distance between two indices call 'distance(from:to:)' on the ${View} instance that produced the index.")
146
-
public func distanceTo(end: ${Index}) -> ${Distance} {
146
+
public func distanceTo(_ end: ${Index}) -> ${Distance} {
0 commit comments