Mistake in docstring of binary search? #8854
-
In the docstring of However, in the following example Is this a documentary mistake? If yes, is it because that the author didn't consider the optional parameters |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Got it, thanks for your reply! |
Beta Was this translation helpful? Give feedback.
sorted_collection[3:3]
is the empty list[]
, not[10]
, so the doctest is actually correct.