Skip to content

Commit a187870

Browse files
committed
update doc
1 parent d3580e0 commit a187870

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/ruff_linter/src/rules/ruff/rules/float_comparison.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ use crate::{FixAvailability, Violation};
1313
/// Directly comparing floats can produce unreliable results due to the
1414
/// inherent imprecision of floating-point arithmetic.
1515
///
16-
/// ## When to use [`math.isclose()`][mathisclose] vs [`numpy.isclose()`][numpyisclose]
16+
/// ## When to use `math.isclose()` vs `numpy.isclose()`
1717
///
1818
/// **Use `math.isclose()` for scalar values:**
1919
/// - Comparing individual float numbers
2020
/// - Working with regular Python variables (not arrays)
2121
/// - When you need a single `True`/`False` result
2222
///
2323
/// **Use `numpy.isclose()` for array-like objects:**
24-
/// - Comparing pandas Series, numpy arrays, or other vectorized objects
24+
/// - Comparing `pandas` Series, `numpy` arrays, or other vectorized objects
2525
/// - When you need element-wise comparison of arrays
2626
/// - Working in data science contexts with vectorized operations
2727
///

0 commit comments

Comments
 (0)