Skip to content

Commit f517ff8

Browse files
committed
Fixed a few typos
1 parent a46ad5f commit f517ff8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ def _default(self, statement):
855855

856856
@staticmethod
857857
def _surround_ansi_escapes(prompt, start="\x01", end="\x02"):
858-
"""Overcome bug in GNU Readline in relation to calculation of prompt length in presence of ASNI escape codes.
858+
"""Overcome bug in GNU Readline in relation to calculation of prompt length in presence of ANSI escape codes.
859859
860860
:param prompt: str - original prompt
861861
:param start: str - start code to tell GNU Readline about beginning of invisible characters
@@ -1488,7 +1488,7 @@ def do_history(self, arg, opts):
14881488
self.stdout.write(hi.pr())
14891489

14901490
def _last_matching(self, arg):
1491-
"""Return the last item from the history list that matches arg. Or if arg not provided, retern last item.
1491+
"""Return the last item from the history list that matches arg. Or if arg not provided, return last item.
14921492
14931493
If not match is found, return None.
14941494
@@ -1754,7 +1754,7 @@ def cmdloop(self, intro=None):
17541754
"""This is an outer wrapper around _cmdloop() which deals with extra features provided by cmd2.
17551755
17561756
_cmdloop() provides the main loop equivalent to cmd.cmdloop(). This is a wrapper around that which deals with
1757-
the following extra feactures provided by cmd2:
1757+
the following extra features provided by cmd2:
17581758
- commands at invocation
17591759
- transcript testing
17601760
- intro banner

0 commit comments

Comments
 (0)