summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorpierresy <pierre-henri.symoneaux@alcatel-lucent.com>2015-06-18 22:20:51 +0200
committerpierresy <pierre-henri.symoneaux@alcatel-lucent.com>2015-06-18 22:20:51 +0200
commit8b3aa5ab7b88059641c27f7ff2fcfcc0ec1aa4b2 (patch)
treed62c42eb4ee5e97f98b9ae7684aac952df126272 /examples
parentf1da0232d65703f62ea0ab8a2019276f4f7339a7 (diff)
Fixed issue with ptable! macro
Diffstat (limited to 'examples')
-rw-r--r--examples/basic.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/basic.rs b/examples/basic.rs
index 3be3153..13cc661 100644
--- a/examples/basic.rs
+++ b/examples/basic.rs
@@ -40,4 +40,10 @@ fn main() {
["foobar", "bar", "foo"],
["foobar2", "bar2", "foo2"]
);
+
+ // Or directly print it like this
+ let _table = table!(["ABC", "DEFG", "HIJKLMN"],
+ ["foobar", "bar", "foo"],
+ ["foobar2", "bar2", "foo2"]
+ );
}