Skip to content

Commit e692720

Browse files
authored
Remove trailing space
1 parent 8de1ee4 commit e692720

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pythainlp/util/trie.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def remove(self, word: str) -> None:
6262
child.end = False
6363
# prune up the tree
6464
for parent, child, ch in reversed(threes):
65-
if child.end or child.children:
65+
if child.end or child.children:
6666
break
6767
del parent.children[ch] # remove from parent dict
6868

@@ -97,11 +97,11 @@ def __len__(self) -> int:
9797

9898
def dict_trie(dict_source: Union[str, Iterable[str], Trie]) -> Trie:
9999
"""
100-
Create a dictionary trie from a string or an iterable.
100+
Create a dictionary trie from a file or an iterable.
101101
102102
:param str|Iterable[str]|pythainlp.util.Trie dict_source: a path to
103103
dictionary file or a list of words or a pythainlp.util.Trie object
104-
:return: a trie object created from a dictionary input
104+
:return: a trie object
105105
:rtype: pythainlp.util.Trie
106106
"""
107107
trie = None

0 commit comments

Comments
 (0)