diff --git a/src/linked_list.rs b/src/linked_list.rs index 12698e2..47c9d5c 100644 --- a/src/linked_list.rs +++ b/src/linked_list.rs @@ -15,7 +15,7 @@ impl ListNode { macro_rules! list { () => { None }; ( $first:expr ) => { Some(Box::new(ListNode::new($first))) }; - ( $first:expr, $($x:expr),* ) => { + ( $first:expr, $($x:expr),+ ) => { { let mut head = Box::new(ListNode::new($first)); let mut tail = &mut head;