Skip to content

Commit cff1e78

Browse files
committed
docs: fix magic comments example
1 parent d8ed639 commit cff1e78

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

docs/features/hoist-static.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,8 @@ export default {
3838

3939
## Magic Comments
4040

41-
```vue twoslash
41+
```vue
4242
<script setup lang="ts">
43-
const fn = () => 'AppFoo'
44-
4543
// A value that's even not a constant
4644
const name = /* hoist-static */ fn()
4745
defineOptions({

docs/zh-CN/features/hoist-static.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,9 @@ export default {
3838

3939
## 魔法注释
4040

41-
```vue twoslash
41+
```vue
4242
<script setup lang="ts">
43-
const fn = () => 'AppFoo'
44-
45-
// 一个甚至不是常量的值
43+
// 甚至不是常量的值
4644
const name = /* hoist-static */ fn()
4745
defineOptions({
4846
name,

0 commit comments

Comments
 (0)