From 726a99441f29f4f9d38e826ca6ab544232b5a625 Mon Sep 17 00:00:00 2001 From: FreezyLemon Date: Mon, 9 Dec 2024 22:49:07 +0100 Subject: [PATCH 1/2] Fix typo in Signal/ArcSignal --- reactive_graph/src/wrappers.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactive_graph/src/wrappers.rs b/reactive_graph/src/wrappers.rs index 37ac879401..75c9d283f4 100644 --- a/reactive_graph/src/wrappers.rs +++ b/reactive_graph/src/wrappers.rs @@ -97,7 +97,7 @@ pub mod read { /// or derived signal closure. /// /// This allows you to create APIs that take any kind of `ArcSignal` as an argument, - /// rather than adding a generic `F: Fn() -> T`. Values can be access with the same + /// rather than adding a generic `F: Fn() -> T`. Values can be accessed with the same /// function call, `with()`, and `get()` APIs as other signals. pub struct ArcSignal where @@ -333,7 +333,7 @@ pub mod read { /// an [`ReadSignal`], [`Memo`], [`RwSignal`], or derived signal closure. /// /// This allows you to create APIs that take any kind of `Signal` as an argument, - /// rather than adding a generic `F: Fn() -> T`. Values can be access with the same + /// rather than adding a generic `F: Fn() -> T`. Values can be accessed with the same /// function call, `with()`, and `get()` APIs as other signals. pub struct Signal where From 6f5bdcc6750d6aa39e4cc7b942568311c845dcd9 Mon Sep 17 00:00:00 2001 From: FreezyLemon Date: Mon, 9 Dec 2024 22:58:17 +0100 Subject: [PATCH 2/2] Fix rustdoc link to ArenaItem on Sandboxed::new --- reactive_graph/src/owner/arena.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/reactive_graph/src/owner/arena.rs b/reactive_graph/src/owner/arena.rs index e016f90f8b..9a3ea6083c 100644 --- a/reactive_graph/src/owner/arena.rs +++ b/reactive_graph/src/owner/arena.rs @@ -121,8 +121,11 @@ pub mod sandboxed { } impl Sandboxed { - /// Wraps the given [`Future`], ensuring that any [`ArenaItem`] created while it is being - /// polled will be associated with the same arena that was active when this was called. + /// Wraps the given [`Future`], ensuring that any [`ArenaItem`][item] created while it is + /// being polled will be associated with the same arena that was active when this was + /// called. + /// + /// [item]:[crate::owner::ArenaItem] pub fn new(inner: T) -> Self { let arena = MAP.with_borrow(|n| n.as_ref().and_then(Weak::upgrade)); Self { arena, inner }