Skip to content

Commit 4fe9328

Browse files
glessardlorentey
andcommitted
[span] follow the leading underscore rule
Co-authored-by: Karoy Lorentey <[email protected]>
1 parent 386f041 commit 4fe9328

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stdlib/public/core/Span/Span.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ extension Span where Element: ~Copyable {
462462
//FIXME: change to unsafeRawAddress when ready
463463
unsafeAddress {
464464
_precondition(indices.contains(position), "Index out of bounds")
465-
return unsafeAddressOfElement(unchecked: position)
465+
return _unsafeAddressOfElement(unchecked: position)
466466
}
467467
}
468468

@@ -481,14 +481,14 @@ extension Span where Element: ~Copyable {
481481
public subscript(unchecked position: Index) -> Element {
482482
//FIXME: change to unsafeRawAddress when ready
483483
unsafeAddress {
484-
unsafeAddressOfElement(unchecked: position)
484+
_unsafeAddressOfElement(unchecked: position)
485485
}
486486
}
487487

488488
@_disallowFeatureSuppression(NonescapableTypes)
489489
@unsafe
490490
@_alwaysEmitIntoClient
491-
internal func unsafeAddressOfElement(
491+
internal func _unsafeAddressOfElement(
492492
unchecked position: Index
493493
) -> UnsafePointer<Element> {
494494
let elementOffset = position &* MemoryLayout<Element>.stride

0 commit comments

Comments
 (0)