Skip to content

Commit 2b698db

Browse files
committed
Fix links in approx_const
1 parent b7222be commit 2b698db

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

clippy_lints/src/approx_const.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@ use utils::span_lint;
77

88
/// **What it does:** Checks for floating point literals that approximate
99
/// constants which are defined in
10-
/// [`std::f32::consts`](https://doc.rust-lang.
11-
/// org/stable/std/f32/consts/#constants)
10+
/// [`std::f32::consts`](https://doc.rust-lang.org/stable/std/f32/consts/#constants)
1211
/// or
13-
/// [`std::f64::consts`](https://doc.rust-lang.
14-
/// org/stable/std/f64/consts/#constants),
12+
/// [`std::f64::consts`](https://doc.rust-lang.org/stable/std/f64/consts/#constants),
1513
/// respectively, suggesting to use the predefined constant.
1614
///
1715
/// **Why is this bad?** Usually, the definition in the standard library is more

0 commit comments

Comments
 (0)