chore: add doc for del

This commit is contained in:
Zixuan Chen 2022-10-22 19:11:01 +08:00
parent e883177369
commit 65175743f2

View file

@ -22,6 +22,7 @@ impl Mergable for ListOp {
} => pos + slice.len() == *other_pos && slice.is_mergable(other_slice, &()),
_ => false,
},
// TODO: add support for reverse merge
ListOp::Delete { pos, len } => match _other {
ListOp::Delete { pos: other_pos, .. } => *pos == *other_pos,
_ => false,