docs(core): fix toSignal docs (#54964)

PR Close #54964
This commit is contained in:
Garrett Darnell
2024-03-19 09:01:27 -04:00
committed by Andrew Scott
parent 346a555e93
commit 9cef0d210f
+2 -2
View File
@@ -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.
@@ -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.