macro_rules! chyrp_up {
([ $( $line:literal ),+ $(,)? ] $(@ $prefix:literal)? ) => { ... };
($first:literal $(, $( $line:literal ),+ )? $(,)? $(@ $prefix:literal)? ) => { ... };
}Expand description
A helper macro creating valid doc string using the macro syntax
#[doc=r#"..."#].
Example:
let x = chyrp_up!(["some", "thing"]);
let y = r##"#[doc=r#"some
thing"#]
struct ChyrpChyrp;"##;
assert_eq!(x,y);