Skip to content

Commit

Permalink
Correct return type of Search.find()
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdnyc committed Jan 6, 2025
1 parent de21d50 commit 0ec04a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Search {
/**
* Searches for `options.needle`. If found, this method returns the [[Range `Range`]] where the text first occurs. If `options.backwards` is `true`, the search goes backwards in the session.
* @param {EditSession} session The session to search with
* @returns {Range|false}
* @returns {Range | null}
**/
find(session) {
var options = this.$options;
Expand Down

0 comments on commit 0ec04a6

Please sign in to comment.