Skip to content

Commit 30627c7

Browse files
committed
docs: fix
1 parent 032cdd4 commit 30627c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/internal-mechanism.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ $: console.log(foo && foo.bar);
132132

133133
In the above code, foo in `$:` should be `object` or `null` in `*.svelte`, but TypeScript infers that it is `null` only.
134134

135-
To avoid this problem, the parser generates hypothetical code and traps statements within `$:` to function scope.
135+
To avoid this problem, the parser generates virtual code and traps statements within `$:` to function scope.
136136
Then restore it to have the correct AST and ScopeManager.
137137

138138
For example:

0 commit comments

Comments
 (0)