mirror of
https://github.com/loro-dev/loro.git
synced 2024-11-28 17:41:49 +00:00
fix: rle iter logic
This commit is contained in:
parent
ec4e1926cb
commit
478491831d
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ impl<T: Mergable<Cfg> + HasLength, Cfg> RleVec<T, Cfg> {
|
|||
}
|
||||
|
||||
let from_result = self.get(from).unwrap();
|
||||
let to_result = self.get(to);
|
||||
let to_result = if to == self.len() { None } else { self.get(to) };
|
||||
if let Some(to_result) = to_result {
|
||||
SliceIterator {
|
||||
vec: &self.vec,
|
||||
|
|
Loading…
Reference in a new issue