Skip to content

Commit e849dc0

Browse files
authored
docs: replace existing var with const (#19578)
1 parent bdcc91d commit e849dc0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/rules/no-else-return.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function foo3() {
5959
if (x) {
6060
return y;
6161
} else {
62-
var t = "foo";
62+
const t = "foo";
6363
}
6464

6565
return t;
@@ -110,7 +110,7 @@ function foo2() {
110110
if (x) {
111111
return y;
112112
} else if (z) {
113-
var t = "foo";
113+
const t = "foo";
114114
} else {
115115
return w;
116116
}

0 commit comments

Comments
 (0)