Skip to content

Commit 66248fe

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

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
@@ -47,7 +47,7 @@ def word_break(string: str, words: list[str]) -> bool:
4747
>>> word_break('abc', [123])
4848
Traceback (most recent call last):
4949
...
50-
ValueError: the word_dict should a list of non empty string
50+
ValueError: the words should be a list of non-empty strings
5151
>>> word_break('abc', [''])
5252
Traceback (most recent call last):
5353
...

0 commit comments

Comments
 (0)