Skip to content

Commit c2159e2

Browse files
authored
Update ObjectIdentifier.swift
1 parent 59aff3e commit c2159e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/public/core/ObjectIdentifier.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@
1414
///
1515
/// In Swift, only class instances and metatypes have unique identities. There
1616
/// is no notion of identity for structs, enums, functions, or tuples.
17+
///
1718
/// `ObjectIdentifier` is only guaranteed to remain unique for the
1819
/// lifetime of an object. When the instance gets deallocated, its object
1920
/// identifier may be reused for a different object. (Internally, objects are
2021
/// identified by their memory location.)
22+
///
2123
/// If you need an object identifier over the lifetime of an object, it may
2224
/// be appropriate to provide a custom implementation of `Identifiable`.
2325
@frozen // trivial-implementation
24-
///
2526
public struct ObjectIdentifier {
2627
@usableFromInline // trivial-implementation
2728
internal let _value: Builtin.RawPointer

0 commit comments

Comments
 (0)