Skip to content

Commit

Permalink
Merge pull request #333 from zhang-accounting/docs/fix-ident
Browse files Browse the repository at this point in the history
docs: fix the indent of list
  • Loading branch information
Kilerd authored Jun 3, 2024
2 parents 335ced7 + d34b497 commit c4ba0f4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions zhang-ast/src/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ impl<'a> TxnPosting<'a> {
/// trade amount means the amount used for other postings to calculate balance
/// 1. if `unit` is null, return null
/// 2. if `unit` is present,
/// 2.1 return `unit * cost`, if cost is present
/// 2.2 return `unit * single_price`, if single price is present
/// 2.3 return `total_price`, if total price is present
/// 2.4 return `unit`, if both cost and price are not present.
/// 2.1 return `unit * cost`, if cost is present
/// 2.2 return `unit * single_price`, if single price is present
/// 2.3 return `total_price`, if total price is present
/// 2.4 return `unit`, if both cost and price are not present.
pub fn trade_amount(&self) -> Option<Amount> {
self.posting
.units
Expand Down

0 comments on commit c4ba0f4

Please sign in to comment.