Skip to content

Commit 101d96d

Browse files
committed
Fix documentation incorrectness
1 parent 6d8080e commit 101d96d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clippy_lints/src/missing_const_for_fn.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ use syntax_pos::Span;
1515
///
1616
/// **Why is this bad?**
1717
///
18-
/// Not using `const` is a missed optimization. Instead of having the function execute at runtime,
19-
/// when using `const`, it's evaluated at compiletime. The result of the evaluation is inlined
20-
/// during compilation and doesn't have to be recomputed during runtime.
18+
/// Not having the function const prevents callers of the function from being const as well.
2119
///
2220
/// **Known problems:**
2321
///

0 commit comments

Comments
 (0)