Skip to content

Commit ff82c1e

Browse files
author
Alexis Beingessner
committed
[docs] Change argument name to match docs.
1 parent 8e4f98f commit ff82c1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/core/UnsafePointer.swift.gyb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,10 +446,10 @@ public struct ${Self}<Pointee>
446446
}
447447

448448
/// Returns `end - self`.
449-
public func distance(to x: ${Self}) -> Int {
450-
return x - self
451449
///
452450
/// - Precondition: The result is within the bounds of the same allocation.
451+
public func distance(to end: ${Self}) -> Int {
452+
return end - self
453453
}
454454

455455
/// Returns `self + n`.

0 commit comments

Comments
 (0)