diff options
| author | Erik Arvstedt <erik.arvstedt@gmail.com> | 2024-01-19 00:25:44 +0100 |
|---|---|---|
| committer | Erik Arvstedt <erik.arvstedt@gmail.com> | 2024-01-19 00:55:17 +0100 |
| commit | c50ba2d1019b025d278e0644903b1358a70415b5 (patch) | |
| tree | df046fc02554b5b2ad38a2f56bac30cf04e888d2 /lib/std/Thread/Pool.zig | |
| parent | 0bb6967d1464d95e50ef620ea5b3ebd9f9c0bc97 (diff) | |
| download | zig-c50ba2d1019b025d278e0644903b1358a70415b5.tar.gz zig-c50ba2d1019b025d278e0644903b1358a70415b5.zip | |
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`.
Diffstat (limited to 'lib/std/Thread/Pool.zig')
0 files changed, 0 insertions, 0 deletions
