Skip to content

Commit 16e5417

Browse files
authored
Update ObjectIdentifier.swift
1 parent a9af098 commit 16e5417

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

stdlib/public/core/ObjectIdentifier.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212

1313
/// A unique identifier for a class instance or metatype.
1414
///
15+
/// And the unique identifier is only valid for comparisons during the lifetime
16+
/// of the instance.
17+
///
1518
/// In Swift, only class instances and metatypes have unique identities. There
1619
/// is no notion of identity for structs, enums, functions, or tuples.
1720
///
18-
/// `ObjectIdentifier` is only guaranteed to remain unique for the
19-
/// lifetime of an object.
2021
@frozen // trivial-implementation
2122
public struct ObjectIdentifier {
2223
@usableFromInline // trivial-implementation

0 commit comments

Comments
 (0)