authorgravatar for awqatty.b@gmail.comBecker A. <awqatty.b@gmail.com> 2025-08-18 15:49:48-06:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-08-25 18:51:41+02:00
log9ef2208e4b2a51f9c800295674265a33804bbc8a
treec439653ff75a2002d4558949106f148abad8be41
parent38173d63d38ff6afb43ee7b52cc5ea09ede38765
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

Update powi.zig to fix docstring formatting

Without this change, the docs are formatted s.t. the text "Edge case rules ordered by precedence:" is appended onto the prior line of text "Underflow: Absolute value of result smaller than 1", instead of getting its own line.

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

lib/std/math/powi.zig+1
......@@ -13,6 +13,7 @@ const testing = std.testing;
1313/// Errors:
1414/// - Overflow: Integer overflow or Infinity
1515/// - Underflow: Absolute value of result smaller than 1
16///
1617/// Edge case rules ordered by precedence:
1718/// - powi(T, x, 0) = 1 unless T is i1, i0, u0
1819/// - powi(T, 0, x) = 0 when x > 0