Skip to content

Commit feac5a5

Browse files
authored
Fix punctuation in some algorithms (#1067)
1 parent 56d6107 commit feac5a5

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

STYLE_GUIDE.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,8 @@ hyphens) should be capitalized, with the following exceptions:
5555
All elements in hyphenated words follow the same rules, e.g. headings may
5656
contain `Non-Null`, `Context-Free`, `Built-in` (`in` is a preposition, so is not
5757
capitalized).
58+
59+
## Lists
60+
61+
Lists can be written as full sentences or as fragments. Algorithms that appear
62+
as lists, however, should be written in full sentences with proper punctuation.

spec/Section 2 -- Language.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1120,7 +1120,7 @@ ListValue : [ Value+ ]
11201120
- For each {Value+}
11211121
- Let {value} be the result of evaluating {Value}.
11221122
- Append {value} to {inputList}.
1123-
- Return {inputList}
1123+
- Return {inputList}.
11241124

11251125
### Input Object Values
11261126

@@ -1168,7 +1168,7 @@ ObjectValue : { ObjectField+ }
11681168
- Let {name} be {Name} in {field}.
11691169
- Let {value} be the result of evaluating {Value} in {field}.
11701170
- Add a field to {inputObject} of name {name} containing value {value}.
1171-
- Return {inputObject}
1171+
- Return {inputObject}.
11721172

11731173
## Variables
11741174

spec/Section 3 -- Type System.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ IsInputType(type) :
354354
- Return IsInputType({unwrappedType})
355355
- If {type} is a Scalar, Enum, or Input Object type:
356356
- Return {true}
357-
- Return {false}
357+
- Return {false}.
358358

359359
IsOutputType(type) :
360360

@@ -363,7 +363,7 @@ IsOutputType(type) :
363363
- Return IsOutputType({unwrappedType})
364364
- If {type} is a Scalar, Object, Interface, Union, or Enum type:
365365
- Return {true}
366-
- Return {false}
366+
- Return {false}.
367367

368368
### Type Extensions
369369

spec/Section 5 -- Validation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,7 +1014,7 @@ is a validation error if the target of a spread is not defined.
10141014

10151015
- For each {fragmentDefinition} in the document:
10161016
- Let {visited} be the empty set.
1017-
- {DetectFragmentCycles(fragmentDefinition, visited)}
1017+
- {DetectFragmentCycles(fragmentDefinition, visited)}.
10181018

10191019
DetectFragmentCycles(fragmentDefinition, visited):
10201020

@@ -1023,7 +1023,7 @@ DetectFragmentCycles(fragmentDefinition, visited):
10231023
- {visited} must not contain {spread}.
10241024
- Let {nextVisited} be the set including {spread} and members of {visited}.
10251025
- Let {nextFragmentDefinition} be the target of {spread}.
1026-
- {DetectFragmentCycles(nextFragmentDefinition, nextVisited)}
1026+
- {DetectFragmentCycles(nextFragmentDefinition, nextVisited)}.
10271027

10281028
**Explanatory Text**
10291029

spec/Section 6 -- Execution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ CreateSourceEventStream(subscription, schema, variableValues, initialValue):
263263
is unaffected if an alias is used.
264264
- Let {field} be the first entry in {fields}.
265265
- Let {argumentValues} be the result of {CoerceArgumentValues(subscriptionType,
266-
field, variableValues)}
266+
field, variableValues)}.
267267
- Let {fieldStream} be the result of running
268268
{ResolveFieldEventStream(subscriptionType, initialValue, fieldName,
269269
argumentValues)}.

0 commit comments

Comments
 (0)