Skip to content

Commit

Permalink
[stdlib] Use transfer operator in __setitem__()
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Saelices <[email protected]>
  • Loading branch information
msaelices committed Sep 23, 2024
1 parent fc8c226 commit 9a29d8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/src/collections/dict.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ struct Dict[K: KeyElement, V: CollectionElement](
key: The key to associate with the specified value.
value: The data to store in the dictionary.
"""
self._insert_with_hash(key, value, _hash_key(key))
self._insert_with_hash(key^, value^, _hash_key(key))

fn __contains__(self, key: K) -> Bool:
"""Check if a given key is in the dictionary or not.
Expand Down

0 comments on commit 9a29d8c

Please sign in to comment.