mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-09 19:00:46 +00:00
Fix doc comment
This commit is contained in:
parent
0046eba66d
commit
1af1b9e5fd
@ -200,7 +200,7 @@ impl<T: 'static> SelectView<T> {
|
||||
|
||||
/// Returns the value of the currently selected item.
|
||||
///
|
||||
/// Panics if the list is empty.
|
||||
/// Returns `None` if the list is empty.
|
||||
pub fn selection(&self) -> Option<Rc<T>> {
|
||||
let focus = self.focus();
|
||||
if self.len() <= focus {
|
||||
|
Loading…
Reference in New Issue
Block a user