Skip to content

Commit

Permalink
docs(macros): add missing comment
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeStanger committed Mar 29, 2024
1 parent 71b85ea commit 8e9db14
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,13 @@ macro_rules! arc_rw {
};
}

/// Wraps `val` in a new `Rc<RefCell<T>>`.
///
/// # Usage
///
/// ```rs
/// let val = rc_mut!(MyService::new())
/// ```
#[macro_export]
macro_rules! rc_mut {
($val:expr) => {
Expand Down

0 comments on commit 8e9db14

Please sign in to comment.