Skip to content

Commit dbe25b8

Browse files
committed
Remove temp variables in example
1 parent 080b884 commit dbe25b8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

text/0000-variadic-generics.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,7 @@ impl<Head, Tail, F, R> TupleMap<F> for (Head, ...Tail)
121121

122122
fn map(self, f: F) -> Self::Out {
123123
let (head, ...tail) = self;
124-
let mapped_head = f(head);
125-
let mapped_tail = tail.map(f);
126-
(mapped_head, ...mapped_tail)
124+
(f(head), ...tail.map(f))
127125
}
128126
}
129127
```

0 commit comments

Comments
 (0)