Skip to content

Commit c713027

Browse files
committed
fix a blunder where I swapped operands
1 parent 06e736b commit c713027

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/yew/src/dom_bundle/blist.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ impl Reconcilable for VList {
422422
test_log!("lefts: {:?}", lefts);
423423
test_log!("rights: {:?}", rights);
424424

425-
if let Some(additional) = rights.len().checked_sub(lefts.len()) {
425+
if let Some(additional) = lefts.len().checked_sub(rights.len()) {
426426
rights.reserve_exact(additional);
427427
}
428428
let first = if self.fully_keyed && blist.fully_keyed {

0 commit comments

Comments
 (0)