Skip to content

Commit 8b144a1

Browse files
sephrouseQC-L
authored andcommitted
docs(cn): fix the misleading function name in content/tutorial/tutorial.md (#250)
replace helper with calculateWinner.
1 parent 0a55de7 commit 8b144a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/tutorial/tutorial.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ class Board extends React.Component {
692692

693693
### 判断出胜者 {#declaring-a-winner}
694694

695-
至此我们就可以看出下一步会轮到哪位玩家,与此同时,我们还需要显示游戏的结果来判定游戏结束。拷贝如下 helper 函数并粘贴到文件底部:
695+
至此我们就可以看出下一步会轮到哪位玩家,与此同时,我们还需要显示游戏的结果来判定游戏结束。拷贝如下 calculateWinner 函数并粘贴到文件底部:
696696

697697
```javascript
698698
function calculateWinner(squares) {

0 commit comments

Comments
 (0)