Skip to content

Commit b2c68b3

Browse files
Update comment
1 parent 9123122 commit b2c68b3

File tree

1 file changed

+3
-1
lines changed
  • jsontree/src/commonMain/kotlin/com/sebastianneubauer/jsontree/search

1 file changed

+3
-1
lines changed

jsontree/src/commonMain/kotlin/com/sebastianneubauer/jsontree/search/SearchState.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ public class SearchState internal constructor(
5555
get() = state.totalResults
5656

5757
/**
58-
* The currently selected result. A number between 1 and [totalResults].
58+
* The currently selected result.
59+
* A number between 1 and [totalResults] if there are any results for the current query.
60+
* 0 in case there are no results.
5961
* Use [selectNext] and [selectPrevious] to select a different result.
6062
*/
6163
public val selectedResult: Int

0 commit comments

Comments
 (0)