From d34b497b2604adcf748e7a877bd77e5df17d57c9 Mon Sep 17 00:00:00 2001 From: Kilerd Chan Date: Mon, 3 Jun 2024 10:45:55 +0800 Subject: [PATCH] docs: fix the indent of list --- zhang-ast/src/data.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zhang-ast/src/data.rs b/zhang-ast/src/data.rs index c8056c5d..9519b5b8 100644 --- a/zhang-ast/src/data.rs +++ b/zhang-ast/src/data.rs @@ -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 { self.posting .units