Skip to content

Commit

Permalink
Fix rustdoc link to ArenaItem on Sandboxed::new
Browse files Browse the repository at this point in the history
  • Loading branch information
FreezyLemon committed Dec 9, 2024
1 parent 726a994 commit 6f5bdcc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions reactive_graph/src/owner/arena.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,11 @@ pub mod sandboxed {
}

impl<T> Sandboxed<T> {
/// 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 }
Expand Down

0 comments on commit 6f5bdcc

Please sign in to comment.