Skip to content

Commit f25396e

Browse files
committed
Merge pull request airbnb#99 from ultimatedelman/master
[functions] define var in example at the top
2 parents 95b6b5f + cce1a2d commit f25396e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,9 @@
295295
}
296296
297297
// good
298+
var test;
298299
if (currentUser) {
299-
var test = function test() {
300+
test = function test() {
300301
console.log('Yup.');
301302
};
302303
}

0 commit comments

Comments
 (0)