Skip to content

Commit

Permalink
Fix doc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jedel1043 committed Nov 3, 2023
1 parent 4cef330 commit 98acd9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/fixed_decimal/src/decimal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2565,7 +2565,7 @@ impl FixedDecimal {
/// assert_eq!("10.0", dec.to_string());
/// let mut dec = FixedDecimal::from_str("9.99").unwrap();
/// dec.half_even_to_increment(-2, RoundingIncrement::MultiplesOf2);
/// assert_eq!("9.98", dec.to_string());
/// assert_eq!("10.00", dec.to_string());
/// ```
pub fn half_even_to_increment(&mut self, position: i16, increment: RoundingIncrement) {
let should_expand = match increment {
Expand Down Expand Up @@ -2695,7 +2695,7 @@ impl FixedDecimal {
/// );
/// let mut dec = FixedDecimal::from_str("9.99").unwrap();
/// assert_eq!(
/// "9.98",
/// "10.00",
/// dec.half_evened_to_increment(-2, RoundingIncrement::MultiplesOf2)
/// .to_string()
/// );
Expand Down

0 comments on commit 98acd9e

Please sign in to comment.