summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorpierresy <pierre-henri.symoneaux@nokia.com>2016-03-18 09:23:40 +0100
committerpierresy <pierre-henri.symoneaux@nokia.com>2016-03-18 09:23:40 +0100
commitb0d1702203697c03048c1663db52ce01df41bb34 (patch)
treea6da14563b7302306d90d9130339e1480b002f24 /examples
parent2d3ff462d8a5f584f5f25a4427ad766db37be5a1 (diff)
Fixes #26
Diffstat (limited to 'examples')
-rw-r--r--examples/basic.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/basic.rs b/examples/basic.rs
index a7def3a..28c98e3 100644
--- a/examples/basic.rs
+++ b/examples/basic.rs
@@ -12,7 +12,7 @@ use prettytable::cell::Cell;
+---------+------+---------+
| foobar2 | bar2 | foo2 |
+---------+------+---------+
- Modified :
+ Modified :
+---------+------+---------+
| ABC | DEFG | HIJKLMN |
+---------+------+---------+
@@ -34,15 +34,15 @@ fn main() {
println!("Modified : ");
table.set_element("new_foo", 2, 1).unwrap();
table.printstd();
-
+
// The same table can be built the following way :
let _table = table!(["ABC", "DEFG", "HIJKLMN"],
["foobar", "bar", "foo"],
["foobar2", "bar2", "foo2"]
);
-
+
// Or directly print it like this
- let _table = table!(["ABC", "DEFG", "HIJKLMN"],
+ let _table = ptable!(["ABC", "DEFG", "HIJKLMN"],
["foobar", "bar", "foo"],
["foobar2", "bar2", "foo2"]
);