mirror of
https://github.com/loro-dev/loro.git
synced 2025-02-02 11:06:14 +00:00
docs: leave some comments
This commit is contained in:
parent
dd5c1bea72
commit
cb3458b862
1 changed files with 3 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue