Skip to content
This repository was archived by the owner on Apr 21, 2023. It is now read-only.

Commit ba290ad

Browse files
Delphine Bugnerdbugner-tf1harish-sethuraman
authored
(tic-tac-toe) fix or-and in sentence (#5646)
* 🐛 (tic-tac-toe) fix or-and in sentence * chore: use an just like previous para --------- Co-authored-by: Delphine Bugner <[email protected]> Co-authored-by: Strek <[email protected]>
1 parent c7db27b commit ba290ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

beta/src/content/learn/tutorial-tic-tac-toe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1410,7 +1410,7 @@ But wait, there's a problem. Try clicking on the same square multiple times:
14101410
14111411
The `X` is overwritten by an `O`! While this would add a very interesting twist to the game, we're going to stick to the original rules for now.
14121412
1413-
When you mark a square with a `X` or a `O` you aren't first checking to see if the square already has a `X` or `O` value. You can fix this by *returning early*. You'll check to see if the square already has a `X` or and `O`. If the square is already filled, you will `return` in the `handleClick` function early--before it tries to update the board state.
1413+
When you mark a square with a `X` or an `O` you aren't first checking to see if the square already has a `X` or `O` value. You can fix this by *returning early*. You'll check to see if the square already has a `X` or an `O`. If the square is already filled, you will `return` in the `handleClick` function early--before it tries to update the board state.
14141414
14151415
```js {2,3,4}
14161416
function handleClick(i) {

0 commit comments

Comments
 (0)