Skip to content

Commit 7e79219

Browse files
Copilotbact
andcommitted
Revert docstring examples in phayathaibert/core.py
Revert changes to input/output examples in docstrings as requested. These examples demonstrate actual function behavior and should not be modified. Co-authored-by: bact <128572+bact@users.noreply.github.com>
1 parent af21304 commit 7e79219

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

pythainlp/phayathaibert/core.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ def rm_brackets(self, text: str) -> str:
4949
:return: text where all useless brackets are removed
5050
:rtype: str
5151
:Example:
52-
>>> rm_brackets("hey() what's[;] up{*&} man(hey)")
53-
hey what's up man(hey)
52+
>>> rm_brackets("hey() whats[;] up{*&} man(hey)")
53+
hey whats up man(hey)
5454
"""
5555
# remove empty brackets
5656
new_line = re.sub(r"\(\)", "", text)
@@ -76,8 +76,8 @@ def replace_newlines(self, text: str) -> str:
7676
:return: text where all newlines are replaced with spaces
7777
:rtype: str
7878
:Example:
79-
>>> rm_useless_spaces("hey what's\n\nup")
80-
hey what's up
79+
>>> rm_useless_spaces("hey whats\n\nup")
80+
hey whats up
8181
"""
8282
return re.sub(r"[\n]", " ", text.strip())
8383

0 commit comments

Comments
 (0)