authorgravatar for datamanrb@gmail.comdata-man <datamanrb@gmail.com> 2019-08-09 12:43:29+05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-08-11 08:15:42-07:00
log4bd4c5e06d13c35a70d0207b730fb67b83ff6363
tree0517048a378efcc81cf0f7358a00d46accb5f761
parente6ebc41a07b294e602f8594e001df78e143e190f

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


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

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