diff options
Diffstat (limited to 'examples/basic.rs')
-rw-r--r-- | examples/basic.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/basic.rs b/examples/basic.rs index 3996f4c..7cefeb8 100644 --- a/examples/basic.rs +++ b/examples/basic.rs @@ -23,12 +23,12 @@ use tabprint::cell::Cell; */
fn main() {
let mut table = Table::new(row!["ABC", "DEFG", "HIJKLMN"]);
- table.add_row(row!["foobar", "bar", "foo"]).unwrap();
+ table.add_row(row!["foobar", "bar", "foo"]);
table.add_row(Row::new(vec![
Cell::new(&"foobar2".to_string()),
Cell::new(&"bar2".to_string()),
Cell::new(&"foo2".to_string())])
- ).unwrap();
+ );
table.printstd();
println!("Modified : ");
table.set_element(&"new_foo".to_string(), 2, 1).unwrap();
|