Skip to content

Commit 5d44dad

Browse files
Luqmaan DawoodjeeFacebook Github Bot 5
Luqmaan Dawoodjee
authored and
Facebook Github Bot 5
committed
Fix spelling of letter (leter)
Summary:Fix spelling of the word letter. Was leter, now letter. :monkey: Closes facebook#6780 Differential Revision: D3131714 fb-gh-sync-id: a368304267347211c139b09b82f6da12e8b67615 fbshipit-source-id: a368304267347211c139b09b82f6da12e8b67615
1 parent 144dc30 commit 5d44dad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Examples/UIExplorer/NavigationExperimental/NavigationTicTacToeExample.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ const {
3232
type GameGrid = Array<Array<?string>>;
3333

3434
const evenOddPlayerMap = ['O', 'X'];
35-
const rowLeterMap = ['a', 'b', 'c'];
35+
const rowLetterMap = ['a', 'b', 'c'];
3636

3737
function parseGame(game: string): GameGrid {
3838
const gameTurns = game ? game.split('-') : [];
3939
const grid = Array(3);
4040
for (let i = 0; i < 3; i++) {
4141
const row = Array(3);
4242
for (let j = 0; j < 3; j++) {
43-
const turnIndex = gameTurns.indexOf(rowLeterMap[i]+j);
43+
const turnIndex = gameTurns.indexOf(rowLetterMap[i]+j);
4444
if (turnIndex === -1) {
4545
row[j] = null;
4646
} else {
@@ -53,7 +53,7 @@ function parseGame(game: string): GameGrid {
5353
}
5454

5555
function playTurn(game: string, row: number, col: number): string {
56-
const turn = rowLeterMap[row] + col;
56+
const turn = rowLetterMap[row] + col;
5757
return game ? (game + '-' + turn) : turn;
5858
}
5959

0 commit comments

Comments
 (0)