From 0e4e7b047ceee5abfa3f8bcb33792c08a7ad97e6 Mon Sep 17 00:00:00 2001 From: Nick Raienko Date: Fri, 3 Jul 2015 01:05:11 +0300 Subject: [PATCH] Misc comment typos --- src/__tests__/starWarsSchema.js | 2 +- src/executor/executor.js | 6 +++--- src/language/source.js | 2 +- src/language/visitor.js | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/__tests__/starWarsSchema.js b/src/__tests__/starWarsSchema.js index b479044db5..ac2d857c03 100644 --- a/src/__tests__/starWarsSchema.js +++ b/src/__tests__/starWarsSchema.js @@ -224,7 +224,7 @@ var droidType = new GraphQLObjectType({ * This is the type that will be the root of our query, and the * entry point into our schema. It gives us the ability to fetch * objects by their IDs, as well as to fetch the undisputed hero - * of the Star Wars triolgy, R2-D2, directly. + * of the Star Wars trilogy, R2-D2, directly. * * This implements the following type system shorthand: * type Query { diff --git a/src/executor/executor.js b/src/executor/executor.js index 001389756a..4bd3a9d02d 100644 --- a/src/executor/executor.js +++ b/src/executor/executor.js @@ -89,7 +89,7 @@ type ExecutionContext = { } /** - * The result of exeution. `data` is the result of executing the + * The result of execution. `data` is the result of executing the * query, `errors` is null if no errors occurred, and is a * non-empty array if an error occurred. */ @@ -483,7 +483,7 @@ function resolveField( /** * Resolves the field on the given source object. In particular, this * figures out the object that the field returns using the resolve function, - * then calls completeField to corece scalars or execute the sub + * then calls completeField to coerce scalars or execute the sub * selection set for objects. */ function resolveFieldOrError( @@ -666,7 +666,7 @@ function isThenable(value: any): boolean { /** * This method looks up the field on the given type defintion. * It has special casing for the two introspection fields, __schema - * and __typename. __typename is special becuase it can always be + * and __typename. __typename is special because it can always be * queried as a field, even in situations where no other fields * are allowed, like on a Union. __schema could get automatically * added to the query type, but that would require mutating type diff --git a/src/language/source.js b/src/language/source.js index 917fb66cfb..a4af284636 100644 --- a/src/language/source.js +++ b/src/language/source.js @@ -11,7 +11,7 @@ /** * A representation of source input to GraphQL. The name is optional, * but is mostly useful for clients who store GraphQL documents in - * souce files; for example, if the GraphQL input is in a file Foo.graphql, + * source files; for example, if the GraphQL input is in a file Foo.graphql, * it might be useful for name to be "Foo.graphql". */ export class Source { diff --git a/src/language/visitor.js b/src/language/visitor.js index c9e1a1321e..85d1f734f2 100644 --- a/src/language/visitor.js +++ b/src/language/visitor.js @@ -42,7 +42,7 @@ export const BREAK = {}; /** * visit() will walk through an AST using a depth first traversal, calling - * the visitor's enter function at each node in the traveral, and calling the + * the visitor's enter function at each node in the traversal, and calling the * leave function after visiting that node and all of it's child nodes. * * By returning different values from the enter and leave functions, the