aboutsummaryrefslogtreecommitdiff
path: root/lib/std/math/float.zig
diff options
context:
space:
mode:
authorErik Arvstedt <erik.arvstedt@gmail.com>2024-01-19 00:25:44 +0100
committerErik Arvstedt <erik.arvstedt@gmail.com>2024-01-19 00:55:17 +0100
commitc50ba2d1019b025d278e0644903b1358a70415b5 (patch)
treedf046fc02554b5b2ad38a2f56bac30cf04e888d2 /lib/std/math/float.zig
parent0bb6967d1464d95e50ef620ea5b3ebd9f9c0bc97 (diff)
downloadzig-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/math/float.zig')
0 files changed, 0 insertions, 0 deletions