mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
insert_at incorrectly prevented inserts at the end of a list.
This commit is contained in:
@@ -240,7 +240,7 @@ fn void List.push_front(&self, Type type) @inline
|
||||
}
|
||||
|
||||
/**
|
||||
* @require index < self.size
|
||||
* @require index <= self.size
|
||||
**/
|
||||
fn void List.insert_at(&self, usz index, Type type)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user