# std: Fix update\(\) method in PriorityQueue and PriorityDequeue \(\#13908\) · gitcafe/zig

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

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

Visibility: public

Requested revision: f8ea292d0989ac8245399a8dad6f27c8b28cd696

Requested commit: f8ea292d0989ac8245399a8dad6f27c8b28cd696

Commit: f8ea292d0989ac8245399a8dad6f27c8b28cd696

Tree: 2f5bb0e1304a645e820e7552af445c83b17ebab0

Author: Frechdachs

Committer: Andrew Kelley

## Message

```
std: Fix update() method in PriorityQueue and PriorityDequeue (#13908)

Previously the update() method would iterate over its capacity, which may contain uninitialized memory or already removed elements.
```

## Parents

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

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