From c9b4955773c1f999e798e73e6e76fa3e47e9e1f3 Mon Sep 17 00:00:00 2001 From: Gerrit Viljoen Date: Wed, 1 Apr 2020 21:18:07 +0200 Subject: [PATCH] Updated example --- readme.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 │