Skip to content

Commit 8db93c8

Browse files
authored
docs: clarify $inspect.trace docs
1 parent c051a6e commit 8db93c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

documentation/docs/02-runes/07-$inspect.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ This rune, added in 5.14, causes the surrounding function to be _traced_ in deve
5252
import { doSomeWork } from './elsewhere';
5353
5454
$effect(() => {
55-
+++$inspect.trace();+++
55+
+++ // $inspect.trace must be the first statement of a function body
56+
$inspect.trace();+++
5657
doSomeWork();
5758
});
5859
</script>

0 commit comments

Comments
 (0)