瀏覽代碼

Fix copy and paste error

Ian Goldberg 6 月之前
父節點
當前提交
b61068d3c6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      sigma_compiler_core/src/transform.rs

+ 1 - 1
sigma_compiler_core/src/transform.rs

@@ -451,7 +451,7 @@ pub fn enforce_disjunction_invariant(
         // them to the vector.  Otherwise, make a new And node
         // containing the old node and the branch_extra_statements.
         if let StatementTree::And(ref mut stvec) = branch {
-            stvec.append(&mut root_extra_statements);
+            stvec.append(&mut branch_extra_statements);
         } else {
             let old_branch = std::mem::replace(branch, StatementTree::leaf_true());
             branch_extra_statements.push(old_branch);