Skip to content

Commit 939695d

Browse files
committed
Refactor and move code comment
Move code comment to be inline with the thing it is commenting. Since this block seems to require a code comment add white space to make it more clear. Refactor only, no logic change.
1 parent 1ed13a9 commit 939695d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/policy/semantic.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,9 +415,11 @@ impl<Pk: MiniscriptKey> Policy<Pk> {
415415

416416
let n = subs.len() - unsatisfied_count - trivial_count; // remove all true/false
417417
let m = k.checked_sub(trivial_count).map_or(0, |x| x); // satisfy all trivial
418-
// m == n denotes `and` and m == 1 denotes `or`
418+
419+
// m == n denotes `and` and m == 1 denotes `or`
419420
let is_and = m == n;
420421
let is_or = m == 1;
422+
421423
for sub in subs {
422424
match sub {
423425
Policy::Trivial | Policy::Unsatisfiable => {}

0 commit comments

Comments
 (0)