From dbe25b8303af7e7255076e74db70f68f09a330a0 Mon Sep 17 00:00:00 2001 From: Taylor Cramer Date: Mon, 27 Feb 2017 22:21:40 -0800 Subject: [PATCH] Remove temp variables in example --- text/0000-variadic-generics.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/text/0000-variadic-generics.md b/text/0000-variadic-generics.md index 7861882426a..1e770610568 100644 --- a/text/0000-variadic-generics.md +++ b/text/0000-variadic-generics.md @@ -121,9 +121,7 @@ impl TupleMap 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)) } } ```