aboutsummaryrefslogblamecommitdiff
path: root/src/format-table/README.md
blob: d918bdf49d20c32979ad3f5a131a61466bdca692 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                               
# `format_table`

Format tables with a stupid API. [Documentation](https://docs.rs/format_table).

Example:

```rust
let mut table = vec!["product\tquantity\tprice".to_string()];
for (p, q, r) in [("tomato", 12, 15), ("potato", 10, 20), ("rice", 5, 12)] {
	table.push(format!("{}\t{}\t{}", p, q, r));
}
format_table::format_table(table);
```