解决Vec移除元素时长度不更新的问题
This commit is contained in:
parent
41dd0a0e00
commit
6a935dc2b7
|
@ -112,6 +112,7 @@ impl<T: Default> Vec<T> {
|
||||||
self.length - index - 1,
|
self.length - index - 1,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
self.length -= 1;
|
||||||
t
|
t
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue