diff options
| author | Becker A. <awqatty.b@gmail.com> | 2025-08-18 15:49:48 -0600 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2025-08-24 22:59:08 +0200 |
| commit | 718ee31e214b28e20fa3dcdbace4e7658c056861 (patch) | |
| tree | a8897b5c8729ef3df706936647fe2eef462e7b6e | |
| parent | 83f773fc64971160c526107da4590c1583eb84cf (diff) | |
| download | zig-718ee31e214b28e20fa3dcdbace4e7658c056861.tar.gz zig-718ee31e214b28e20fa3dcdbace4e7658c056861.zip | |
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.
| -rw-r--r-- | lib/std/math/powi.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/std/math/powi.zig b/lib/std/math/powi.zig index aed79e097c..285dc5e209 100644 --- a/lib/std/math/powi.zig +++ b/lib/std/math/powi.zig @@ -13,6 +13,7 @@ const testing = std.testing; /// Errors: /// - Overflow: Integer overflow or Infinity /// - Underflow: Absolute value of result smaller than 1 +/// /// Edge case rules ordered by precedence: /// - powi(T, x, 0) = 1 unless T is i1, i0, u0 /// - powi(T, 0, x) = 0 when x > 0 |
