Formatting and updating docstring.
This commit is contained in:
parent
253ffaafda
commit
d5a5237fb8
1 changed files with 4 additions and 5 deletions
|
@ -6,7 +6,7 @@ locale = "en_US"
|
||||||
|
|
||||||
@hook.command
|
@hook.command
|
||||||
def spell(inp):
|
def spell(inp):
|
||||||
"""spell <word> -- Check spelling of <word>."""
|
"""spell <word/sentence> -- Check spelling of a word or sentence."""
|
||||||
words = inp.split(" ")
|
words = inp.split(" ")
|
||||||
if words[0] == "":
|
if words[0] == "":
|
||||||
words = []
|
words = []
|
||||||
|
@ -36,4 +36,3 @@ def spell(inp):
|
||||||
else:
|
else:
|
||||||
return '"{}" appears to be \x02invalid\x02! ' \
|
return '"{}" appears to be \x02invalid\x02! ' \
|
||||||
'(suggestions: {})'.format(inp, s_string)
|
'(suggestions: {})'.format(inp, s_string)
|
||||||
|
|
||||||
|
|
Reference in a new issue