summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index f5cba05..f75a4df 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -14,7 +14,7 @@ use term::{Attr, color};
fn main() {
let _ = table!();
let mut table = Table::new();
- table.add_row(row![FrByb:"ABC", "DEFG", "HIJKLMN"]);
+ table.add_row(row![FrByb->"ABC", "DEFG", "HIJKLMN"]);
table.add_row(row!["foobar", "bar", "foo"]);
table.add_row(row![]);
// Add style to a full row
@@ -40,7 +40,7 @@ fn main() {
// Print a table with some styles on it :
// FrBybl means : Foregound red, Background yellow, bold, left align
// d means : Default, do nothing
- ptable!([FrBybl:"A", "B", FrBybr:"C"], [d:123, 234, 345, 456]);
+ ptable!([FrBybl->"A", "B", FrBybr->"C"], [d->123, 234, 345, 456]);
// 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]);