Skip to content

Commit

Permalink
refix ,
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminBrienen committed Dec 27, 2024
1 parent 674c44b commit 52fdcb9
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ impl Parse for AllTuples {
///
/// macro_rules! impl_wrapped_in_foo {
/// ($($T:ident),*) => {
/// impl<$($T),*> WrappedInFoo for ($($T,)*) {
/// type Tup = ($(Foo<$T>,)*);
/// impl<$($T),*> WrappedInFoo for ($($T),*) {
/// type Tup = ($(Foo<$T>),*);
/// }
/// };
/// }
Expand Down Expand Up @@ -108,10 +108,10 @@ impl Parse for AllTuples {
///
/// macro_rules! impl_append {
/// ($(($P:ident, $p:ident)),*) => {
/// impl<$($P,)*> Append for ($($P,)*) {
/// type Out<Item> = ($($P,)*, Item);
/// fn append<Item>(($($p,)*): Self, item: Item) -> Self::Out<Item> {
/// ($($p,)*, item)
/// impl<$($P),*> Append for ($($P),*) {
/// type Out<Item> = ($($P),*, Item);
/// fn append<Item>(($($p),*): Self, item: Item) -> Self::Out<Item> {
/// ($($p),*, item)
/// }
/// }
/// }
Expand Down Expand Up @@ -151,7 +151,7 @@ impl Parse for AllTuples {
/// macro_rules! impl_variadic {
/// ($(#[$meta:meta])* $(($P:ident, $p:ident)),*) => {
/// $(#[$meta])*
/// impl<$($P,)*> Variadic for ($($P,)*) {}
/// impl<$($P),*> Variadic for ($($P),*) {}
/// }
/// }
///
Expand Down Expand Up @@ -206,7 +206,7 @@ pub fn all_tuples(input: TokenStream) -> TokenStream {
/// // constituents squawk sequentially:
/// macro_rules! impl_squawk {
/// ($(($n:tt, $T:ident)),*) => {
/// impl<$($T: Squawk),*> Squawk for ($($T,)*) {
/// impl<$($T: Squawk),*> Squawk for ($($T),*) {
/// fn squawk(&self) {
/// $(
/// self.$n.squawk();
Expand Down Expand Up @@ -289,8 +289,8 @@ pub fn all_tuples_enumerated(input: TokenStream) -> TokenStream {
///
/// macro_rules! impl_wrapped_in_foo {
/// ($N:expr, $($T:ident),*) => {
/// impl<$($T),*> WrappedInFoo for ($($T,)*) {
/// type Tup = ($(Foo<$T>,)*);
/// impl<$($T),*> WrappedInFoo for ($($T),*) {
/// type Tup = ($(Foo<$T>),*);
/// const LENGTH: usize = $N;
/// }
/// };
Expand Down Expand Up @@ -323,10 +323,10 @@ pub fn all_tuples_enumerated(input: TokenStream) -> TokenStream {
///
/// macro_rules! impl_append {
/// ($N:expr, $(($P:ident, $p:ident)),*) => {
/// impl<$($P,)*> Append for ($($P,)*) {
/// type Out<Item> = ($($P,)*, Item);
/// fn append<Item>(($($p,)*): Self, item: Item) -> Self::Out<Item> {
/// ($($p,)*, item)
/// impl<$($P),*> Append for ($($P),*) {
/// type Out<Item> = ($($P),*, Item);
/// fn append<Item>(($($p),*): Self, item: Item) -> Self::Out<Item> {
/// ($($p),*, item)
/// }
/// }
/// }
Expand Down Expand Up @@ -366,7 +366,7 @@ pub fn all_tuples_enumerated(input: TokenStream) -> TokenStream {
/// macro_rules! impl_variadic {
/// ($N:expr, $(#[$meta:meta])* $(($P:ident, $p:ident)),*) => {
/// $(#[$meta])*
/// impl<$($P,)*> Variadic for ($($P,)*) {}
/// impl<$($P),*> Variadic for ($($P),*) {}
/// }
/// }
///
Expand Down

0 comments on commit 52fdcb9

Please sign in to comment.