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)]
|
#[derive(EnumAsInner, Debug, Clone)]
|
||||||
pub enum InnerListOp {
|
pub enum InnerListOp {
|
||||||
// Note: len may not equal to slice.len() because for text len is unicode len while the slice
|
// TODO: this is only used for list now? We should rename it to InsertList
|
||||||
// is utf8 bytes.
|
|
||||||
Insert {
|
Insert {
|
||||||
slice: SliceRange,
|
slice: SliceRange,
|
||||||
pos: usize,
|
pos: usize,
|
||||||
},
|
},
|
||||||
|
// Note: len may not equal to slice.len() because for text len is unicode len while the slice
|
||||||
|
// is utf8 bytes.
|
||||||
InsertText {
|
InsertText {
|
||||||
slice: BytesSlice,
|
slice: BytesSlice,
|
||||||
unicode_start: u32,
|
unicode_start: u32,
|
||||||
|
|
Loading…
Reference in a new issue