Skip to content

Commit e0a3204

Browse files
gribozavrtkremenek
authored andcommitted
stdlib: unavailable String APIs: use Swift 2.x APIs without first argument labels (#3022)
1 parent b4901ea commit e0a3204

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stdlib/public/core/UnavailableStringAPIs.swift.gyb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,19 +131,19 @@ extension ${Index} {
131131
@available(
132132
*, unavailable,
133133
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} {
135135
Builtin.unreachable()
136136
}
137137
@available(
138138
*, unavailable,
139139
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} {
141141
Builtin.unreachable()
142142
}
143143
@available(
144144
*, unavailable,
145145
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} {
147147
Builtin.unreachable()
148148
}
149149
}

0 commit comments

Comments
 (0)