Skip to content

Commit

Permalink
docs(core): fix toSignal docs (#54964)
Browse files Browse the repository at this point in the history
PR Close #54964
  • Loading branch information
garrettld authored and atscott committed Mar 28, 2024
1 parent 346a555 commit 9cef0d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/rxjs-interop/src/to_signal.ts
Expand Up @@ -42,7 +42,7 @@ export interface ToSignalOptions {

/**
* Whether the subscription should be automatically cleaned up (via `DestroyRef`) when
* `toObservable`'s creation context is destroyed.
* `toSignal`'s creation context is destroyed.
*
* If manual cleanup is enabled, then `DestroyRef` is not used, and the subscription will persist
* until the `Observable` itself completes.
Expand Down Expand Up @@ -92,7 +92,7 @@ export function toSignal<T, const U extends T>(
* does not include an `undefined` type.
*
* By default, the subscription will be automatically cleaned up when the current [injection
* context](/guide/dependency-injection-context) is destroyed. For example, when `toObservable` is
* context](/guide/dependency-injection-context) is destroyed. For example, when `toSignal` is
* called during the construction of a component, the subscription will be cleaned up when the
* component is destroyed. If an injection context is not available, an explicit `Injector` can be
* passed instead.
Expand Down

0 comments on commit 9cef0d2

Please sign in to comment.