Skip to content

Commit

Permalink
Remove temp variables in example
Browse files Browse the repository at this point in the history
  • Loading branch information
cramertj committed Feb 28, 2017
1 parent 080b884 commit dbe25b8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions text/0000-variadic-generics.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,7 @@ impl<Head, Tail, F, R> TupleMap<F> for (Head, ...Tail)

fn map(self, f: F) -> Self::Out {
let (head, ...tail) = self;
let mapped_head = f(head);
let mapped_tail = tail.map(f);
(mapped_head, ...mapped_tail)
(f(head), ...tail.map(f))
}
}
```
Expand Down

0 comments on commit dbe25b8

Please sign in to comment.