Skip to content

Commit

Permalink
Merge pull request #3341 from FreezyLemon/fix-some-doc-typos
Browse files Browse the repository at this point in the history
Fix a doc typo and one broken intra-doc link
  • Loading branch information
gbj authored Dec 10, 2024
2 parents 71a136c + 6f5bdcc commit e1e90b8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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
4 changes: 2 additions & 2 deletions reactive_graph/src/wrappers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ pub mod read {
/// or derived signal closure.
///
/// This allows you to create APIs that take any kind of `ArcSignal<T>` 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<T: 'static, S = SyncStorage>
where
Expand Down Expand Up @@ -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<T>` 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<T, S = SyncStorage>
where
Expand Down

0 comments on commit e1e90b8

Please sign in to comment.