Skip to content

Commit

Permalink
Comment out doc(alias) for now
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed Jun 28, 2022
1 parent 2acf382 commit 23a36c1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,8 @@ impl<L, R> Either<Option<L>, Option<R>> {
/// let right: Either<Option<Vec<u8>>, _> = Right(Some(String::new()));
/// assert_eq!(right.factor_none(), Some(Right(String::new())));
/// ```
#[doc(alias = "transpose")]
// TODO(MSRV): doc(alias) was stabilized in Rust 1.48
// #[doc(alias = "transpose")]
pub fn factor_none(self) -> Option<Either<L, R>> {
match self {
Left(l) => l.map(Either::Left),
Expand All @@ -734,7 +735,8 @@ impl<L, R, E> Either<Result<L, E>, Result<R, E>> {
/// let right: Either<Result<Vec<u8>, u32>, _> = Right(Ok(String::new()));
/// assert_eq!(right.factor_err(), Ok(Right(String::new())));
/// ```
#[doc(alias = "transpose")]
// TODO(MSRV): doc(alias) was stabilized in Rust 1.48
// #[doc(alias = "transpose")]
pub fn factor_err(self) -> Result<Either<L, R>, E> {
match self {
Left(l) => l.map(Either::Left),
Expand All @@ -756,7 +758,8 @@ impl<T, L, R> Either<Result<T, L>, Result<T, R>> {
/// let right: Either<Result<u32, Vec<u8>>, _> = Right(Err(String::new()));
/// assert_eq!(right.factor_ok(), Err(Right(String::new())));
/// ```
#[doc(alias = "transpose")]
// TODO(MSRV): doc(alias) was stabilized in Rust 1.48
// #[doc(alias = "transpose")]
pub fn factor_ok(self) -> Result<T, Either<L, R>> {
match self {
Left(l) => l.map_err(Either::Left),
Expand Down

0 comments on commit 23a36c1

Please sign in to comment.