Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzhi committed Apr 18, 2016
1 parent 8982f88 commit 6a80c43
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/jsutils/__tests__/suggestionList-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('suggestionList', () => {
expect(suggestionList('input', [])).to.deep.equal([]);
});

it('Returns options sorted based on simularity', () => {
it('Returns options sorted based on similarity', () => {
expect(suggestionList('abc', [ 'a', 'ab', 'abc' ]))
.to.deep.equal([ 'abc', 'ab' ]);
});
Expand Down
2 changes: 1 addition & 1 deletion src/jsutils/suggestionList.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

/**
* Given an invalid input string and a list of valid options, returns a filtered
* list of valid options sorted based on their simularity with the input.
* list of valid options sorted based on their similarity with the input.
*/
export function suggestionList(
input: string,
Expand Down
4 changes: 1 addition & 3 deletions src/validation/rules/FieldsOnCorrectType.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ export function undefinedFieldMessage(
if (suggestedFields.length > MAX_LENGTH) {
suggestions += `, or ${suggestedFields.length - MAX_LENGTH} other field`;
}
message +=
` Did you mean to query ${suggestions}?`;

message +=` Did you mean to query ${suggestions}?`;
}
return message;
}
Expand Down

0 comments on commit 6a80c43

Please sign in to comment.