Fix doc comment

This commit is contained in:
Alexandre Bury 2018-07-22 20:26:17 -07:00
parent 0046eba66d
commit 1af1b9e5fd

View File

@ -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 {