Fix ArrayList::push_back

This commit is contained in:
kngwyu 2018-11-18 19:56:16 +09:00
parent be77846979
commit 4c38b21e49
1 changed files with 1 additions and 1 deletions

View File

@ -303,7 +303,7 @@ mod array_list {
self.inner.back_mut().unwrap()[self.last_length] = item;
self.last_length += 1;
self.length += 1;
self.inner.back().unwrap().last().unwrap()
&self.inner.back().unwrap()[self.last_length - 1]
}
pub fn pop_back(&mut self) -> Option<&T> {
if self.last_length == 0 {