File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
stdlib/public/Observation/Sources/Observation Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 15
15
/// Conforming to this protocol signals to other APIs that the type supports
16
16
/// observation. However, applying the `Observable` protocol by itself to a
17
17
/// type doesn't add observation functionality to the type. Instead, always use
18
- /// the ``Observation/Observable-swift.macro `` macro when adding observation
18
+ /// the ``Observation/Observable() `` macro when adding observation
19
19
/// support to a type.
20
20
@available ( SwiftStdlib 5 . 9 , * )
21
21
public protocol Observable { }
@@ -25,9 +25,8 @@ public protocol Observable { }
25
25
/// Defines and implements conformance of the Observable protocol.
26
26
///
27
27
/// This macro adds observation support to a custom type and conforms the type
28
- /// to the ``Observation/Observable-swift.protocol`` protocol. For example, the
29
- /// following code applies the `Observable` macro to the type `Car` making it
30
- /// observable:
28
+ /// to the ``Observation/Observable`` protocol. For example, the following code
29
+ /// applies the `Observable` macro to the type `Car` making it observable:
31
30
///
32
31
/// @Observable
33
32
/// class Car {
Original file line number Diff line number Diff line change 12
12
/// Provides storage for tracking and access to data changes.
13
13
///
14
14
/// You don't need to create an instance of `ObservationRegistrar` when using
15
- /// the ``Observation/Observable-swift.macro`` macro to indicate observability
16
- /// of a type.
15
+ /// the ``Observation/Observable()`` macro to indicate observability of a type.
17
16
@available ( SwiftStdlib 5 . 9 , * )
18
17
public struct ObservationRegistrar : Sendable {
19
18
internal class ValueObservationStorage {
@@ -301,7 +300,7 @@ public struct ObservationRegistrar: Sendable {
301
300
///
302
301
/// You don't need to create an instance of
303
302
/// ``Observation/ObservationRegistrar`` when using the
304
- /// ``Observation/Observable-swift.macro `` macro to indicate observably
303
+ /// ``Observation/Observable() `` macro to indicate observably
305
304
/// of a type.
306
305
public init ( ) {
307
306
}
You can’t perform that action at this time.
0 commit comments