mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-13 20:53:07 +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.
|
/// 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>> {
|
pub fn selection(&self) -> Option<Rc<T>> {
|
||||||
let focus = self.focus();
|
let focus = self.focus();
|
||||||
if self.len() <= focus {
|
if self.len() <= focus {
|
||||||
|
Loading…
Reference in New Issue
Block a user