mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-07-01 18:51:04 +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_export]
|
||||||
macro_rules! rc_mut {
|
macro_rules! rc_mut {
|
||||||
($val:expr) => {
|
($val:expr) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue