diff --git a/stdlib/src/collections/linked_list.mojo b/stdlib/src/collections/linked_list.mojo index 8bb6977194..ce4ac74d1e 100644 --- a/stdlib/src/collections/linked_list.mojo +++ b/stdlib/src/collections/linked_list.mojo @@ -420,9 +420,7 @@ struct LinkedList[ curr = curr[].next return new^ - fn insert[ - I: Indexer - ](mut self, owned idx: I, owned elem: ElementType) raises: + fn insert[I: Indexer](mut self, idx: I, owned elem: ElementType) raises: """ Insert an element `elem` into the list at index `idx`.