fix: remove empty macro usage
This commit is contained in:
parent
8ed62541af
commit
d71e78d138
1 changed files with 4 additions and 5 deletions
|
|
@ -64,18 +64,17 @@ macro_rules! row {
|
|||
///
|
||||
/// ```
|
||||
/// fn view(&self) -> Element<Message> {
|
||||
/// let empty = text!();
|
||||
/// let simple = text!("Hello, world!");
|
||||
///
|
||||
/// let keyword = text!("Hello, {}", "world!");
|
||||
///
|
||||
/// let planet = "Earth";
|
||||
/// let complex = text!("Hello, {planet}!");
|
||||
/// let local_variable = text!("Hello, {planet}!");
|
||||
/// // ...
|
||||
/// }
|
||||
/// ```
|
||||
#[macro_export]
|
||||
macro_rules! text {
|
||||
() => (
|
||||
$crate::Text::new()
|
||||
);
|
||||
($($arg:tt)*) => {
|
||||
$crate::Text::new(format!($($arg)*))
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue