From 06e61724cc9dd19e25e36f5ef1d1e2e5131f74c6 Mon Sep 17 00:00:00 2001 From: Tiago Carvalho Date: Fri, 5 Jan 2024 15:07:54 +0000 Subject: [PATCH] Fix docstr errs --- core/src/types/dec.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/src/types/dec.rs b/core/src/types/dec.rs index 4ec4e223ef..878ac57914 100644 --- a/core/src/types/dec.rs +++ b/core/src/types/dec.rs @@ -67,9 +67,9 @@ impl Dec { /// the division is impossible (e.g., division by zero or overflow), `None` /// is returned. /// - /// Example: - /// ``` - /// + /// For instance: + /// + /// ```ignore /// let x = Dec::new(3, 1).unwrap(); // Represents 0.3 /// let y = Dec::new(2, 1).unwrap(); // Represents 0.2 /// let result = x.trunc_div(&y).unwrap(); @@ -77,9 +77,11 @@ impl Dec { /// ``` /// /// # Arguments + /// /// * `rhs`: The right-hand side `Dec` value for the division. /// /// # Returns + /// /// An `Option` which is `Some` with the result if the division is /// successful, or `None` if the division cannot be performed. pub fn trunc_div(&self, rhs: &Self) -> Option {