Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds documentation comments to the lower_bound and upper_bound functions in the search module, improving code documentation by describing what each function returns.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| @@ -1,3 +1,4 @@ | |||
| /// Returns the smallest index on [l, r) satisfying the condition. | |||
There was a problem hiding this comment.
The documentation refers to parameters 'l' and 'r', but the function signature uses 'range'. Update the doc comment to use 'range' instead of '[l, r)' for consistency with the actual parameter name.
| } | ||
| } | ||
|
|
||
| /// Returns the largest index on [l, r) satisfying the condition. |
There was a problem hiding this comment.
The documentation refers to parameters 'l' and 'r', but the function signature uses 'range'. Update the doc comment to use 'range' instead of '[l, r)' for consistency with the actual parameter name.
| /// Returns the largest index on [l, r) satisfying the condition. | |
| /// Returns the largest index in the range [range.start, range.end) satisfying the condition. |
No description provided.