Commit 68050852fa

Travis Staloch <twostepted@gmail.com>
2021-09-11 00:41:43
sat-arithmetic: minor formatting changes
1 parent fd83835
Changed files (2)
lib
std
src
codegen
lib/std/zig/Ast.zig
@@ -2577,7 +2577,7 @@ pub const Node = struct {
         array_mult,
         /// `lhs *% rhs`. main_token is the `*%`.
         mul_wrap,
-        /// `lhs *| rhs`. main_token is the `*%`.
+        /// `lhs *| rhs`. main_token is the `*|`.
         mul_sat,
         /// `lhs + rhs`. main_token is the `+`.
         add,
src/codegen/llvm.zig
@@ -1256,7 +1256,7 @@ pub const FuncGen = struct {
                 .xor                => try self.airXor(inst),
 
                 .shl                => try self.airShl(inst, false),
-                .shl_sat             => try self.airShl(inst, true),
+                .shl_sat            => try self.airShl(inst, true),
                 .shr                => try self.airShr(inst),
 
                 .cmp_eq  => try self.airCmp(inst, .eq),