diff options
author | pierresy <pierre-henri.symoneaux@alcatel-lucent.com> | 2016-01-14 21:09:37 +0100 |
---|---|---|
committer | pierresy <pierre-henri.symoneaux@alcatel-lucent.com> | 2016-01-14 21:09:37 +0100 |
commit | 7ac4cf44b5b41ba20d31dcb52ea69261ca60851d (patch) | |
tree | 6edf6139d568fbfa6836be485318b107764943b7 /examples | |
parent | 45d77e82ab32622a2b06264ae660bd73edc6731d (diff) |
Changed token for row style
to FlatArrow (`=>`) in macro syntax
Diffstat (limited to 'examples')
-rw-r--r-- | examples/style.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/style.rs b/examples/style.rs index ca608c6..b209060 100644 --- a/examples/style.rs +++ b/examples/style.rs @@ -13,7 +13,7 @@ fn main() { // Add style to a cell
table.add_row(row![FrByb:"ABC", "DEFG", "HIJKLMN"]);
// Add style to a full row
- table.add_row(row![FY -> "styled", "bar", "foo"]);
+ table.add_row(row![FY => "styled", "bar", "foo"]);
table.add_row(Row::new(vec![
Cell::new("foobar2"),
// Create a cell with a red foreground color
@@ -25,14 +25,14 @@ fn main() { );
table.printstd();
-
+
// Print a table with some styles on it :
// FrBybl means : Foregound red, Background yellow, bold, left align
- ptable!([FrBybl:"A", "B", FrBybr:"C"], [123, 234, 345, 456], [Fg -> 1, 2, 3]);
-
+ ptable!([FrBybl:"A", "B", FrBybr:"C"], [123, 234, 345, 456], [Fg => 1, 2, 3]);
+
// You can also apply style to full rows :
- let mut table = table!([Frb -> "A", "B", "C"], [1, 2, 3, 4], ["A\nBCCZZZ\nDDD", 2, table]);
+ let mut table = table!([Frb => "A", "B", "C"], [1, 2, 3, 4], ["A\nBCCZZZ\nDDD", 2, table]);
// Set a title line, with all text centered in the cell
- table.set_titles(row![c -> "Title 1", "Title 2"]);
+ table.set_titles(row![c => "Title 1", "Title 2"]);
table.printstd();
}
|