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

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

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

Visibility: public

Requested revision: cf6e2d318a6e4b2d8921c3fd1989c693874ab942

Requested commit: cf6e2d318a6e4b2d8921c3fd1989c693874ab942

Commit: cf6e2d318a6e4b2d8921c3fd1989c693874ab942

Tree: a14bbe430646f16ed787c8f79b0a1f92984b0fc3

Author: hadroncfy

Committer: Andrew Kelley

## 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

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

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