diff --git a/std/math.zig b/std/math.zig index 73f981528cf49106820e76e926fcb7ddc4014ed3..e10c9329d9c20c1019d3e3d7100437ae875f6898 100644 --- 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);