Merge pull request #186 from kianmeng/fix-typos
Fix typos
GitOrigin-RevId: 1ae26b41be33a1e041f6bc3fedd91ddcaa171585
Change-Id: I0787c5106fea5aaa2d0f0ad94d047581f98d992e
diff --git a/tomlkit/parser.py b/tomlkit/parser.py
index e1f64df..dafc4b6 100644
--- a/tomlkit/parser.py
+++ b/tomlkit/parser.py
@@ -226,7 +226,7 @@
# Found a table, delegate to the calling function.
return
else:
- # Begining of a KV pair.
+ # Beginning of a KV pair.
# Return to beginning of whitespace so it gets included
# as indentation for the KV about to be parsed.
state.restore = True
diff --git a/tomlkit/toml_char.py b/tomlkit/toml_char.py
index 11e5385..487657b 100644
--- a/tomlkit/toml_char.py
+++ b/tomlkit/toml_char.py
@@ -27,7 +27,7 @@
@lru_cache(maxsize=None)
def is_kv_sep(self) -> bool:
"""
- Whether the character is a valid key/value separator ot not.
+ Whether the character is a valid key/value separator or not.
"""
return self in self.KV