Skip to content

Commit 7c89a24

Browse files
committed
Fix comments to reflect current behavior
Replicates graphql/graphql-js@2d1b06b
1 parent 0922dd4 commit 7c89a24

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

graphql/language/lexer.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,9 @@ def lookahead(self):
171171
def read_token(self, prev: Token) -> Token:
172172
"""Get the next token from the source starting at the given position.
173173
174-
This skips over whitespace and comments until it finds the next lexable token,
175-
then lexes punctuators immediately or calls the appropriate helper function fo
176-
more complicated tokens.
174+
This skips over whitespace until it finds the next lexable token, then lexes
175+
punctuators immediately or calls the appropriate helper function for more
176+
complicated tokens.
177177
"""
178178
source = self.source
179179
body = source.body
@@ -210,8 +210,8 @@ def read_token(self, prev: Token) -> Token:
210210
def position_after_whitespace(self, body, start_position: int) -> int:
211211
"""Go to next position after a whitespace.
212212
213-
Reads from body starting at startPosition until it finds a non-whitespace or
214-
commented character, then returns the position of that character for lexing.
213+
Reads from body starting at start_position until it finds a non-whitespace
214+
character, then returns the position of that character for lexing.
215215
"""
216216
body_length = len(body)
217217
position = start_position

0 commit comments

Comments
 (0)