Skip to content

Commit 3a1b9cd

Browse files
author
Kyle Macomber
authored
Merge pull request swiftlang#34349 from sunbohong/patch-1
[Docs] Clarifies `ObjectIdentifier` guarantees
2 parents 58d07a4 + a43cb01 commit 3a1b9cd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stdlib/public/core/ObjectIdentifier.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212

1313
/// A unique identifier for a class instance or metatype.
1414
///
15+
/// This 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
@frozen // trivial-implementation

0 commit comments

Comments
 (0)