Skip to content

Commit 37e6741

Browse files
committed
Apply review feedback.
1 parent bf5ecf0 commit 37e6741

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

stdlib/public/Observation/Sources/Observation/Observable.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public macro Observable() =
5353

5454
/// Synthesizes a property for accessors.
5555
///
56-
/// The ``Observation`` framework uses this macro. Its use outside of the
56+
/// The ``Observation`` module uses this macro. Its use outside of the
5757
/// framework isn't necessary.
5858
@available(SwiftStdlib 5.9, *)
5959
@attached(accessor, names: named(init), named(get), named(set))
@@ -63,7 +63,7 @@ public macro Observable() =
6363
public macro ObservationTracked() =
6464
#externalMacro(module: "ObservationMacros", type: "ObservationTrackedMacro")
6565

66-
/// Turns off observation tracking of a property.
66+
/// Disables observation tracking of a property.
6767
///
6868
/// By default, an object can observe any property of an observable type that
6969
/// is accessible to the observing object. To prevent observation of an

stdlib/public/Observation/Sources/Observation/ObservationRegistrar.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ public struct ObservationRegistrar: Sendable {
148148

149149
/// Identifies mutations to the transactions registered for observers.
150150
///
151+
/// This method calls ``willset(_:keypath:)`` before the mutation. Then it
152+
/// calls ``didset(_:keypath:)`` after the mutation.
151153
/// - Parameters:
152154
/// - of: An instance of an observable type.
153155
/// - keyPath: The key path of an observed property.

0 commit comments

Comments
 (0)