Skip to content

Commit f7c8168

Browse files
committed
Document math.rs provenance
1 parent 8727e79 commit f7c8168

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/math.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
//! These implementations are based on `num-traits`' [`FloatCore`].
2+
//! They have been adapted to the particular needs of `color_quant` and refined
3+
//! through [feedback].
4+
//!
5+
//! [`FloatCore`]: https://docs.rs/num-traits/0.2.19/num_traits/float/trait.FloatCore.html
6+
//! [feedback]: https://github.com/image-rs/color_quant/pull/24#discussion_r2083587462
7+
18
#[inline]
29
pub(crate) fn abs(a: f64) -> f64 {
310
if a.is_sign_positive() {

0 commit comments

Comments
 (0)