Skip to content

Commit e6fbb4b

Browse files
authored
Update ObjectIdentifier.swift
1 parent cd74534 commit e6fbb4b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

stdlib/public/core/ObjectIdentifier.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@
1717
@frozen // trivial-implementation
1818
///
1919
/// `ObjectIdentifier` is only guaranteed to remain unique for the
20-
/// lifetime of an object. If an object has a stronger notion of identity, it
21-
/// may be appropriate to provide a custom implementation.
22-
20+
/// lifetime of an object. When the instance gets deallocated, its object
21+
/// identifier may be reused for a different object. (Internally, objects are
22+
/// identified by their memory location.)
23+
/// If you need an object identifier over the lifetime of an objec, it may
24+
/// be appropriate to provide a custom implementation of `Identifiable`.
2325
public struct ObjectIdentifier {
2426
@usableFromInline // trivial-implementation
2527
internal let _value: Builtin.RawPointer

0 commit comments

Comments
 (0)