Skip to content

Commit 9c92506

Browse files
committed
docs: block fn
1 parent b3649e9 commit 9c92506

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/rules/isolated-functions.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ function abc() {
8989
const foo = 'hi';
9090

9191
/** @isolated */
92-
const abc = () => foo.slice(); // ❌ 'foo' is not defined in isolated function scope
92+
const abc = () => {
93+
return foo.slice(); // ❌ 'foo' is not defined in isolated function scope
94+
};
9395

9496
//
9597
/** @isolated */

0 commit comments

Comments
 (0)