Skip to content

Commit ab64273

Browse files
Update dynamic_programming/word_break.py
Co-authored-by: Christian Clauss <[email protected]>
1 parent 51baf03 commit ab64273

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: dynamic_programming/word_break.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def word_break(string: str, words: list[str]) -> bool:
5151
>>> word_break('abc', [''])
5252
Traceback (most recent call last):
5353
...
54-
ValueError: the word_dict should a list of non empty string
54+
ValueError: the words should be a list of non-empty strings
5555
"""
5656

5757
# Validation

0 commit comments

Comments
 (0)