Fix spelling of letter (leter)

Summary:Fix spelling of the word letter. Was leter, now letter.

🐒
Closes https://github.com/facebook/react-native/pull/6780

Differential Revision: D3131714

fb-gh-sync-id: a368304267347211c139b09b82f6da12e8b67615
fbshipit-source-id: a368304267347211c139b09b82f6da12e8b67615
This commit is contained in:
Luqmaan Dawoodjee 2016-04-02 21:54:12 -07:00 committed by Facebook Github Bot 5
parent 144dc30661
commit 5d44dad43f
1 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ const {
type GameGrid = Array<Array<?string>>;
const evenOddPlayerMap = ['O', 'X'];
const rowLeterMap = ['a', 'b', 'c'];
const rowLetterMap = ['a', 'b', 'c'];
function parseGame(game: string): GameGrid {
const gameTurns = game ? game.split('-') : [];
@ -40,7 +40,7 @@ function parseGame(game: string): GameGrid {
for (let i = 0; i < 3; i++) {
const row = Array(3);
for (let j = 0; j < 3; j++) {
const turnIndex = gameTurns.indexOf(rowLeterMap[i]+j);
const turnIndex = gameTurns.indexOf(rowLetterMap[i]+j);
if (turnIndex === -1) {
row[j] = null;
} else {
@ -53,7 +53,7 @@ function parseGame(game: string): GameGrid {
}
function playTurn(game: string, row: number, col: number): string {
const turn = rowLeterMap[row] + col;
const turn = rowLetterMap[row] + col;
return game ? (game + '-' + turn) : turn;
}