zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 4bd4c5e06d13c35a70d0207b730fb67b83ff6363 (tree)
parent e6ebc41a07b294e602f8594e001df78e143e190f
Author: data-man <datamanrb@gmail.com>
Date:   Fri,  9 Aug 2019 12:43:29 +0500

Fixed tiny typo in the math module (shr's description)

Diffstat:
Mstd/math.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/std/math.zig b/std/math.zig @@ -366,7 +366,7 @@ test "math.shl" { } /// Shifts right. Overflowed bits are truncated. -/// A negative shift amount results in a lefft shift. +/// A negative shift amount results in a left shift. pub fn shr(comptime T: type, a: T, shift_amt: var) T { const abs_shift_amt = absCast(shift_amt); const casted_shift_amt = if (abs_shift_amt >= T.bit_count) return 0 else @intCast(Log2Int(T), abs_shift_amt);