summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-08-27 19:25:16 +0200
committerHampusM <hampus@hampusmat.com>2024-08-27 19:25:16 +0200
commit9d6a63f7dba402a95243d9d0c4b20b45becfdaed (patch)
treebe4346bea101c0109999587142d24122f87f4983 /src
parent13d4ff167880c5c46f9373c7e75b69cb68da42d8 (diff)
fix: call with write_item function with correct index
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 8bfcd29..b90baa5 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -99,7 +99,7 @@ where
self.grow_amortized(1);
}
- self.write_item(self.length - 1, item);
+ self.write_item(self.length, item);
self.length += 1;