mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-04-19 19:34:24 +02:00
docs(macros): add missing comment
This commit is contained in:
parent
71b85ead78
commit
8e9db141f8
1 changed files with 7 additions and 0 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue