mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
A comment about the output list length
This commit is contained in:
parent
5898fa0905
commit
0eee0cc07b
1 changed files with 1 additions and 0 deletions
|
@ -1670,6 +1670,7 @@ fn list_push<'a, 'ctx, 'env>(
|
|||
|
||||
let elems_ptr = load_list_ptr(builder, original_wrapper, ptr_type);
|
||||
|
||||
// The output list length, which is the old list length + 1
|
||||
let new_list_len = env.builder.build_int_add(
|
||||
ctx.i64_type().const_int(
|
||||
// 0 as in 0 index of our new list
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue