From cb3458b8622197d6e5e71460fbe6de6f9323a266 Mon Sep 17 00:00:00 2001 From: Zixuan Chen Date: Fri, 16 Aug 2024 10:47:56 +0800 Subject: [PATCH] docs: leave some comments --- crates/loro-internal/src/container/list/list_op.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/loro-internal/src/container/list/list_op.rs b/crates/loro-internal/src/container/list/list_op.rs index 7ee45e46..bca9ba38 100644 --- a/crates/loro-internal/src/container/list/list_op.rs +++ b/crates/loro-internal/src/container/list/list_op.rs @@ -44,12 +44,13 @@ pub enum ListOp<'a> { #[derive(EnumAsInner, Debug, Clone)] pub enum InnerListOp { - // Note: len may not equal to slice.len() because for text len is unicode len while the slice - // is utf8 bytes. + // TODO: this is only used for list now? We should rename it to InsertList Insert { slice: SliceRange, pos: usize, }, + // Note: len may not equal to slice.len() because for text len is unicode len while the slice + // is utf8 bytes. InsertText { slice: BytesSlice, unicode_start: u32,