authorgravatar for radomski.main@protonmail.comMateusz Radomski <radomski.main@protonmail.com> 2023-04-16 09:36:54+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-04-18 18:42:02-07:00
log1e207f1edd500707032be093a5c8a91f0e16609a
tree27b11f356bc0c3e799ffa9d0f32852e4f9fd2630
parente1cc70ba11735b678430ffde348527a16287a744

math.big.int: remove stale comments

This pull request removes the optional allocator argument from functions `divFloor` and `divTrunc`. As a result, the comments related to accepting an optional `allocator` are no longer applicable. The support for accepting an optional allocator was removed in #10017.

1 files changed, 0 insertions(+), 6 deletions(-)

lib/std/math/big/int.zig-6
......@@ -935,9 +935,6 @@ pub const Mutable = struct {
935935 /// The upper bound for r limb count is `b.limbs.len`.
936936 /// The upper bound for q limb count is given by `a.limbs`.
937937 ///
938 /// If `allocator` is provided, it will be used for temporary storage to improve
939 /// multiplication performance. `error.OutOfMemory` is handled with a fallback algorithm.
940 ///
941938 /// `limbs_buffer` is used for temporary storage. The amount required is given by `calcDivLimbsBufferLen`.
942939 pub fn divFloor(
943940 q: *Mutable,
......@@ -1065,9 +1062,6 @@ pub const Mutable = struct {
10651062 /// The upper bound for r limb count is `b.limbs.len`.
10661063 /// The upper bound for q limb count is given by `a.limbs.len`.
10671064 ///
1068 /// If `allocator` is provided, it will be used for temporary storage to improve
1069 /// multiplication performance. `error.OutOfMemory` is handled with a fallback algorithm.
1070 ///
10711065 /// `limbs_buffer` is used for temporary storage. The amount required is given by `calcDivLimbsBufferLen`.
10721066 pub fn divTrunc(
10731067 q: *Mutable,