Skip to content

Commit 8ab2b1f

Browse files
committed
Show who owes to who
1 parent de2576d commit 8ab2b1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/split.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ impl Transactions {
4646
}
4747

4848
pub fn display(&self) {
49-
println!("{0: <10} | {1: <10} | {2: <10}", "From", "To", "Amount");
49+
println!("{0: <10} | {1: <10} | {2: <10}", "Who", "Owes To", "Amount");
5050
for i in &self.transactions {
5151
println!(
5252
"{0: <10} | {1: <10} | {2: <10}",
53-
i.from.name, i.to.name, i.amount
53+
i.to.name, i.from.name, i.amount
5454
);
5555
}
5656
}

0 commit comments

Comments
 (0)