Skip to content

Commit 9cef0d2

Browse files
garrettldatscott
authored andcommitted
docs(core): fix toSignal docs (#54964)
PR Close #54964
1 parent 346a555 commit 9cef0d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/rxjs-interop/src/to_signal.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export interface ToSignalOptions {
4242

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

0 commit comments

Comments
 (0)