Skip to content

Commit 84b2e56

Browse files
committed
AllEqualValueError implements std::error::Error (2) documentation fix
1 parent 63b04e5 commit 84b2e56

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/all_equal_value_err.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
#[cfg(doc)]
2+
use crate::Itertools;
13
#[cfg(feature = "use_std")]
24
use std::error::Error;
35
use std::fmt::{Debug, Display, Formatter, Result as FmtResult};
46

5-
/// Value returned for the error case of `Itertools::all_equal_value()`.
7+
/// Value returned for the error case of [`Itertools::all_equal_value`].
68
#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]
79
pub struct AllEqualValueError<Item>(pub Option<[Item; 2]>);
810

0 commit comments

Comments
 (0)