Skip to content

Commit

Permalink
Typos in comments
Browse files Browse the repository at this point in the history
Signed-off-by: Anqur <[email protected]>
  • Loading branch information
anqurvanillapy committed Jan 20, 2024
1 parent 73694eb commit f0de35c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lyzh/surface/parsec.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def cur(self) -> core.Loc:
return core.Loc(self.loc.pos, self.loc.ln, self.loc.col)

def text(self, start: core.Loc) -> str:
"""返回当前位置到起始位置的文本."""
"""返回起始位置到当前位置的文本."""
return self.src[start.pos : self.loc.pos]

def peek(self) -> typing.Optional[str]:
Expand Down

0 comments on commit f0de35c

Please sign in to comment.