1
0
Fork 0
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:
Jake Stanger 2024-03-29 00:29:13 +00:00
parent 71b85ead78
commit 8e9db141f8
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61

View file

@ -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) => {