summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorpierresy <pierre-henri.symoneaux@alcatel-lucent.com>2015-11-19 09:54:38 +0100
committerpierresy <pierre-henri.symoneaux@alcatel-lucent.com>2015-11-19 09:54:38 +0100
commit92c144e657ede392d0ae116bab85f197e64a65cd (patch)
tree3dd26f3d48ffbbca745c2cb19a85dc753aa7fcc4 /README.md
parent6add8e7b8adfb4f685224c56dae443ea522c3526 (diff)
Updated Cargo.toml and README.md.
Using style string don't panic anymore if some specifier are unknown. Tables and Rows are now Indexable. Empty rows are now correctly printed. New lines use "\n" for all platforms except windows (which uses "\r\n").
Diffstat (limited to 'README.md')
-rw-r--r--README.md16
1 files changed, 5 insertions, 11 deletions
diff --git a/README.md b/README.md
index f232ae6..2166d23 100644
--- a/README.md
+++ b/README.md
@@ -14,16 +14,6 @@
A formatted and aligned table printer written in rust.
-# How to build
-
-As usual with Cargo project, simply run
-
-> cargo build
-
-And to build html documentation, run
-
-> cargo doc
-
# How to use
## Including
@@ -76,7 +66,7 @@ This code will produce the following output :
## Using macros
-To make the code simpler, the `table!` macro is there for you. The following code would produce the exact same output :
+To make the code simpler, the `table!` macro is there for you. The following code would produce the same output :
```rust
#[macro_use] extern crate prettytable;
@@ -171,6 +161,10 @@ Or for each rows :
```rust
table!([Frb -> "A", "B", "C"], [Frb -> 1, 2, 3, 4], [1, 2, 3]);
```
+Or a mix :
+```rust
+table!([Frb -> "A", "B", "C"], [Frb:1, Fgi:2, 3, 4], [1, 2, 3]);
+```
### List of style specifiers :