Skip to content

Commit

Permalink
Fix doc comment describing when the remove function is called
Browse files Browse the repository at this point in the history
  • Loading branch information
n8chur committed Jul 25, 2023
1 parent ae66e1e commit 7242f1f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ViewEnvironmentUI/Sources/ViewEnvironmentPropagating.swift
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,8 @@ public typealias ViewEnvironmentUpdateObservation = (ViewEnvironment) -> Void
public final class ViewEnvironmentUpdateObservationLifetime {
/// Removes the observation.
///
/// This is called in `deinit`.
/// The observation is removed when the lifetime is de-initialized if this function was not
/// called before then.
///
public func remove() {
guard let onRemove else {
Expand Down Expand Up @@ -482,7 +483,8 @@ public typealias ViewEnvironmentCustomization = (inout ViewEnvironment) -> Void
public final class ViewEnvironmentCustomizationLifetime {
/// Removes the observation.
///
/// This is called in `deinit`.
/// The customization is removed when the lifetime is de-initialized if this function was not
/// called before then.
///
public func remove() {
onRemove()
Expand Down

0 comments on commit 7242f1f

Please sign in to comment.