summaryrefslogtreecommitdiffstats
path: root/src/cell.rs
diff options
context:
space:
mode:
authorpierresy <pierre-henri.symoneaux@alcatel-lucent.com>2016-01-15 00:32:37 +0100
committerpierresy <pierre-henri.symoneaux@alcatel-lucent.com>2016-01-15 00:32:37 +0100
commit8a94bc048df9f75d02dfd0fddef7f7f91651b9d6 (patch)
tree32e8a1c053199d24663afcfdb1b032f22bfc9857 /src/cell.rs
parent7ac4cf44b5b41ba20d31dcb52ea69261ca60851d (diff)
Changed token for cell style
from colon (':') to arrow (`->`) in macro syntax
Diffstat (limited to 'src/cell.rs')
-rw-r--r--src/cell.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cell.rs b/src/cell.rs
index 40bddd5..7fa6ed3 100644
--- a/src/cell.rs
+++ b/src/cell.rs
@@ -253,7 +253,7 @@ impl Default for Cell {
/// // Do something with the cell
/// # drop(cell);
/// // Create a cell with style (Red foreground, Bold, aligned to left);
-/// let styled = cell!(Frbl:"value");
+/// let styled = cell!(Frbl->"value");
/// # drop(styled);
/// # }
/// ```
@@ -261,7 +261,7 @@ impl Default for Cell {
macro_rules! cell {
() => ($crate::cell::Cell::default());
($value:expr) => ($crate::cell::Cell::new(&$value.to_string()));
- ($style:ident : $value:expr) => (cell!($value).style_spec(stringify!($style)));
+ ($style:ident -> $value:expr) => (cell!($value).style_spec(stringify!($style)));
}
#[cfg(test)]