mirror of
https://github.com/loro-dev/loro.git
synced 2025-02-06 12:25:03 +00:00
fix: check err
This commit is contained in:
parent
687fd45f61
commit
6a8087c756
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ impl<'a, T: Rle, A: RleTreeTrait<T>> InternalNode<'a, T, A> {
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
pub(crate) fn check(&mut self) {
|
pub(crate) fn check(&mut self) {
|
||||||
if self.is_root() {
|
if !self.is_root() {
|
||||||
assert!(
|
assert!(
|
||||||
self.children.len() >= A::MIN_CHILDREN_NUM,
|
self.children.len() >= A::MIN_CHILDREN_NUM,
|
||||||
"children.len() = {}",
|
"children.len() = {}",
|
||||||
|
|
Loading…
Reference in a new issue