Skip to content

Commit 9e4665c

Browse files
author
hardfist
committed
删除错误的“()"
class FooComponent() {} 里的()似乎是错误的,经测试无法运行,故予以删除。
1 parent 8c4187a commit 9e4665c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/decorator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ export default function publish(topic, channel) {
381381
```javascript
382382
import publish from "path/to/decorators/publish";
383383

384-
class FooComponent () {
384+
class FooComponent {
385385
@publish("foo.some.message", "component")
386386
someMethod() {
387387
return {

0 commit comments

Comments
 (0)