Skip to content

Commit 116eec2

Browse files
Add "no-confusing-arrow" eslint check
1 parent fee3a45 commit 116eec2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/librustdoc/html/static/.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,6 @@ module.exports = {
7878
"block-scoped-var": "error",
7979
"guard-for-in": "error",
8080
"no-alert": "error",
81+
"no-confusing-arrow": "error",
8182
}
8283
};

src/librustdoc/html/static/js/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ function loadCss(cssFileName) {
882882
["-", "Collapse all sections"],
883883
].map(x => "<dt>" +
884884
x[0].split(" ")
885-
.map((y, index) => (index & 1) === 0 ? "<kbd>" + y + "</kbd>" : " " + y + " ")
885+
.map((y, index) => ((index & 1) === 0 ? "<kbd>" + y + "</kbd>" : " " + y + " "))
886886
.join("") + "</dt><dd>" + x[1] + "</dd>").join("");
887887
const div_shortcuts = document.createElement("div");
888888
addClass(div_shortcuts, "shortcuts");

0 commit comments

Comments
 (0)