# HashMap.getOrPutAssumeCapacityAdapted should set key to undefined \(\#9138\) · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/1f29b75f082660bf8393da5c41cd4ca855f5db88)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 1f29b75f082660bf8393da5c41cd4ca855f5db88

Requested commit: 1f29b75f082660bf8393da5c41cd4ca855f5db88

Commit: 1f29b75f082660bf8393da5c41cd4ca855f5db88

Tree: 36b271e06b09aa26b73607d230a4e4fa7bb61fd3

Author: hadroncfy

Committer: GitHub

## Message

```
HashMap.getOrPutAssumeCapacityAdapted should set key to undefined (#9138)

* std.hash_map.HashMap: getOrPutAssumeCapacityAdapted should set key to undefined

* add test for std.hash_map.HashMap.getOrPutAdapted
```

## Parents

- [6ce84409875e92d69da1fd88409e2f00d4adee9f](https://git.cafe/gitcafe/zig/commit/6ce84409875e92d69da1fd88409e2f00d4adee9f?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/1f29b75f082660bf8393da5c41cd4ca855f5db88?format=markdown)
