Skip to content

Commit b48c8fa

Browse files
authored
Docs: Add comment tranalse in /reference/rules/rules-of-hooks (#1835)
2 parents f6e1413 + e0834a6 commit b48c8fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/reference/rules/rules-of-hooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ function FriendList() {
129129
const [onlineStatus, setOnlineStatus] = useOnlineStatus(); //
130130
}
131131

132-
function setOnlineStatus() { //没有组件或自定义 Hook!
132+
function setOnlineStatus() { //不是一个组件或自定义 Hook!
133133
const [onlineStatus, setOnlineStatus] = useOnlineStatus();
134134
}
135135
```

0 commit comments

Comments
 (0)