Skip to content

Commit 5e2bbd2

Browse files
authoredAug 10, 2023
Update decorator.md
1 parent d0c6f79 commit 5e2bbd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎docs/decorator.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ class C {
510510
}
511511

512512
const inst = new C();
513-
inst.@collect // new Set(['toString', Symbol.iterator])
513+
inst.collectedMethodKeys // new Set(['toString', Symbol.iterator])
514514
```
515515

516516
上面示例中,方法装饰器`@collect`会将所装饰的成员名字,加入一个 Set 集合`collectedMethodKeys`

0 commit comments

Comments
 (0)
Please sign in to comment.