Skip to content

Commit

Permalink
fix detail
Browse files Browse the repository at this point in the history
Signed-off-by: martinvuyk <[email protected]>
  • Loading branch information
martinvuyk committed Dec 10, 2024
1 parent 1401fe4 commit a3d27fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/src/collections/list.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ struct List[T: CollectionElement, hint_trivial_type: Bool = False](
if hint_trivial_type:
memcpy(new_data, self.data, self.byte_length())
else:
for i in range(size):
for i in range(len(self)):
(src + i).move_pointee_into(dest + i)

if self.data:
Expand Down

0 comments on commit a3d27fe

Please sign in to comment.