This commit is contained in:
Trevor Spiteri 2021-03-18 11:47:16 +01:00
parent 2b2e8d6256
commit 6841baee6e
1 changed files with 1 additions and 1 deletions

View File

@ -865,7 +865,7 @@ assert_eq!(Fix::from_num(3).midpoint(Fix::from_num(4)), Fix::from_num(3.5));
",
},
"
// Midpoint of 0b0.0011 and 0.00100 would be 0b0.00111, which has to be rounded.
// Midpoint of 0b0.0011 and 0b0.00100 is 0b0.0011_1, which has to be rounded.
assert_eq!(Fix::from_bits(3).midpoint(Fix::from_bits(4)), Fix::from_bits(3));
assert_eq!(Fix::from_bits(4).midpoint(Fix::from_bits(3)), Fix::from_bits(4));
```