chore: justify welcome! macro with comment
This commit is contained in:
parent
b1c7bd91b9
commit
3c0fcb0679
1 changed files with 4 additions and 0 deletions
|
@ -85,6 +85,10 @@ impl EditorView {
|
|||
Center,
|
||||
}
|
||||
|
||||
/// Declare the welcome screen declaratively using this macro
|
||||
/// It avoids the performance overhead of calling `Vec<Option<_>>::flatten` and
|
||||
/// makes it easy to get the longest line in the center and the left, without
|
||||
/// having to iterate over the `Vec<_>` again.
|
||||
macro_rules! welcome {
|
||||
(
|
||||
$([$align:ident] $line:expr, $(if $cond:expr;)?)* $(,)?
|
||||
|
|
Loading…
Add table
Reference in a new issue