# std.ArrayList.replaceRange: remove unneded overflow checks · gitcafe/zig

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

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

Visibility: public

Requested revision: c50ba2d1019b025d278e0644903b1358a70415b5

Requested commit: c50ba2d1019b025d278e0644903b1358a70415b5

Commit: c50ba2d1019b025d278e0644903b1358a70415b5

Tree: df046fc02554b5b2ad38a2f56bac30cf04e888d2

Author: Erik Arvstedt

Committer: Erik Arvstedt

## Message

```
std.ArrayList.replaceRange: remove unneded overflow checks

The code asserted that the range to be replaced is within bounds of
`self.items`.
This is now reflected in the doc comment.
The old, wrong doc comment was copied from the `insert*` fns.

With this assertion holding true, `start + len` is always within the
address space and `start + new_items.len` is, at this point, always
strictly within bounds of `self.items`.

```

## Parents

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

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