Skip to content

Commit 2c48fba

Browse files
authoredMar 14, 2025··
docs(linter): fix typo in oxc/bad-min-max-func (#9791)
I think there's a typo in this rule's explanation. A correct clamp should have the upper bound in the min call, and the lower bound in the max call. I initially opened a PR directly on the .md file but it turns out to be generated from source oxc-project/oxc-project.github.io#317
1 parent 22f18ac commit 2c48fba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎crates/oxc_linter/src/rules/oxc/bad_min_max_func.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ declare_oxc_lint!(
4242
///
4343
/// ```javascript
4444
/// Math.max(0, Math.min(100, x));
45-
/// Math.min(0, Math.max(1000, z));
45+
/// Math.min(1000, Math.max(0, z));
4646
/// ```
4747
///
4848
BadMinMaxFunc,

0 commit comments

Comments
 (0)
Please sign in to comment.