From f0de35c69a3493490d4bf5a99f9fb39368ad353b Mon Sep 17 00:00:00 2001 From: Anqur Date: Sat, 20 Jan 2024 23:59:43 +0800 Subject: [PATCH] Typos in comments Signed-off-by: Anqur --- lyzh/surface/parsec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lyzh/surface/parsec.py b/lyzh/surface/parsec.py index 4d3b6f4..cfec5b6 100644 --- a/lyzh/surface/parsec.py +++ b/lyzh/surface/parsec.py @@ -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]: