From 9d6a63f7dba402a95243d9d0c4b20b45becfdaed Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 27 Aug 2024 19:25:16 +0200 Subject: fix: call with write_item function with correct index --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3-18-g5258