extern crate text_tables;
use std::io;
use std::str;
fn main() {
let data = [["A", "2x2"], ["pretty", "table"]];
let mut out = Vec::new();
text_tables::render(&mut out, data).unwrap();
println!("{}", str::from_utf8(&out).unwrap());
text_tables::render(&mut io::stdout(), data).unwrap();
}