Skip to content

Commit 59aff3e

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stdlib/public/core/ObjectIdentifier.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
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-
@frozen // trivial-implementation
18-
///
1917
/// `ObjectIdentifier` is only guaranteed to remain unique for the
2018
/// lifetime of an object. When the instance gets deallocated, its object
2119
/// identifier may be reused for a different object. (Internally, objects are
2220
/// identified by their memory location.)
23-
/// If you need an object identifier over the lifetime of an objec, it may
21+
/// If you need an object identifier over the lifetime of an object, it may
2422
/// be appropriate to provide a custom implementation of `Identifiable`.
23+
@frozen // trivial-implementation
24+
///
2525
public struct ObjectIdentifier {
2626
@usableFromInline // trivial-implementation
2727
internal let _value: Builtin.RawPointer

0 commit comments

Comments
 (0)