diff --git a/readme.md b/readme.md index ce9423e..87ea410 100644 --- a/readme.md +++ b/readme.md @@ -5,11 +5,11 @@ Print ASCII tables to the terminal. ## Example ``` -use ascii_table::{TableConfig, print_table}; +use ascii_table::AsciiTable; -let config = TableConfig::default(); +let ascii_table = AsciiTable::default(); let data = vec![&[1, 2, 3], &[4, 5, 6], &[7, 8, 9]]; -print_table(data, &config); +ascii_table.print(data); // ┌───┬───┬───┐ // │ 1 │ 2 │ 3 │ // │ 4 │ 5 │ 6 │