Skip to content

Commit

Permalink
docs: fix the indent of list
Browse files Browse the repository at this point in the history
  • Loading branch information
Kilerd committed Jun 3, 2024
1 parent 335ced7 commit d34b497
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 d34b497

Please sign in to comment.