Skip to content

Commit 891fbbe

Browse files
committed
Add actors to the list of types with identity
1 parent 8dfff8c commit 891fbbe

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

stdlib/public/core/ObjectIdentifier.swift

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@
1212

1313
#if !$Embedded
1414

15-
/// A unique identifier for a class instance or metatype.
15+
/// A unique identifier for a class instance, actor instance, or metatype.
1616
///
17-
/// This unique identifier is only valid for comparisons during the lifetime
17+
/// This unique identifier is valid for comparisons only during the lifetime
1818
/// of the instance.
1919
///
20-
/// In Swift, only class instances and metatypes have unique identities. There
21-
/// is no notion of identity for structs, enums, functions, or tuples.
20+
/// In Swift, only instances of classes, instances of actors, and metatypes
21+
/// have unique identities. There's no notion of identity for structures,
22+
/// enumerations, functions, or tuples.
2223
@frozen // trivial-implementation
2324
public struct ObjectIdentifier: Sendable {
2425
@usableFromInline // trivial-implementation

0 commit comments

Comments
 (0)