Skip to content

Commit 26b4533

Browse files
committed
Concat -> Concatenate
1 parent 274aad9 commit 26b4533

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

utils/writeable/src/concat.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ use core::fmt;
1313
/// # Examples
1414
///
1515
/// ```
16-
/// use writeable::adapters::Concat;
16+
/// use writeable::adapters::Concatenate;
1717
/// use writeable::assert_writeable_eq;
1818
///
19-
/// assert_writeable_eq!(Concat("Number: ", 25), "Number: 25");
19+
/// assert_writeable_eq!(Concatenate("Number: ", 25), "Number: 25");
2020
/// ```
2121
///
2222
/// With [`TryWriteable`]:
2323
///
2424
/// ```
25-
/// use writeable::adapters::Concat;
25+
/// use writeable::adapters::Concatenate;
2626
/// use writeable::TryWriteable;
2727
/// use writeable::assert_try_writeable_eq;
2828
///
@@ -41,16 +41,16 @@ use core::fmt;
4141
/// let writeable1 = AlwaysPanic;
4242
///
4343
/// assert_try_writeable_eq!(
44-
/// Concat(writeable0, writeable1),
44+
/// Concatenate(writeable0, writeable1),
4545
/// "error message",
4646
/// Err("error message"),
4747
/// )
4848
/// ```
4949
#[derive(Debug)]
5050
#[allow(clippy::exhaustive_structs)] // designed for nesting
51-
pub struct Concat<A, B>(pub A, pub B);
51+
pub struct Concatenate<A, B>(pub A, pub B);
5252

53-
impl<A, B> Writeable for Concat<A, B>
53+
impl<A, B> Writeable for Concatenate<A, B>
5454
where
5555
A: Writeable,
5656
B: Writeable,
@@ -71,7 +71,7 @@ where
7171
}
7272
}
7373

74-
impl<A, B, E> TryWriteable for Concat<A, B>
74+
impl<A, B, E> TryWriteable for Concatenate<A, B>
7575
where
7676
A: TryWriteable<Error = E>,
7777
B: TryWriteable<Error = E>,
@@ -103,7 +103,7 @@ where
103103
}
104104
}
105105

106-
impl<A, B> fmt::Display for Concat<A, B>
106+
impl<A, B> fmt::Display for Concatenate<A, B>
107107
where
108108
A: Writeable,
109109
B: Writeable,
@@ -117,7 +117,7 @@ where
117117

118118
/// Returns a [`Writeable`] concatenating any number of [`Writeable`]s.
119119
///
120-
/// The macro resolves to a nested [`Concat`].
120+
/// The macro resolves to a nested [`Concatenate`].
121121
///
122122
/// # Examples
123123
///
@@ -141,7 +141,7 @@ macro_rules! __concatenate {
141141
// `$x` followed by at least one `$y,`
142142
($x:expr, $($y:expr),+) => (
143143
// Call `concatenate!` recursively on the tail `$y`
144-
$crate::adapters::Concat($x, $crate::concatenate!($($y),+))
144+
$crate::adapters::Concatenate($x, $crate::concatenate!($($y),+))
145145
)
146146
}
147147
#[doc(inline)]

utils/writeable/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ pub use try_writeable::TryWriteable;
102102
pub mod adapters {
103103
use super::*;
104104

105-
pub use concat::Concat;
105+
pub use concat::Concatenate;
106106
pub use parts_write_adapter::CoreWriteAsPartsWrite;
107107
pub use parts_write_adapter::WithPart;
108108
pub use try_writeable::TryWriteableInfallibleAsWriteable;

0 commit comments

Comments
 (0)