File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ Here is an example of how to define a trait that works on tuples of any size whe
100100use tuplities :: prelude :: * ;
101101use core :: fmt :: Display ;
102102
103- // 1. Define the trait for flat & nested tuples
103+ // 1. Define flat & nested traits
104104trait PrintTuple {
105105 fn print_tuple (& self );
106106}
@@ -121,7 +121,7 @@ impl<Head: Display> PrintNested for (Head,) {
121121// 3. Implement for the recursive case
122122impl <Head , Tail > PrintNested for (Head , Tail )
123123where
124- Head : Display , // Current element constraint
124+ Head : Display , // Current constraint
125125 Tail : PrintNested , // Recursive constraint
126126{
127127 fn print_nested (& self ) {
@@ -130,7 +130,7 @@ where
130130 }
131131}
132132
133- // 4. Blanket implementation for any nestable tuple
133+ // 4. Blanket implementation for nestable tuples
134134// whose nested form implements PrintNested
135135impl <T > PrintTuple for T
136136where
You can’t perform that action at this time.
0 commit comments