Skip to content

Commit

Permalink
Update tests/should_succeed/array.jou
Browse files Browse the repository at this point in the history
  • Loading branch information
Akuli authored Jan 10, 2025
1 parent 892740d commit 4e3a005
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/should_succeed/array.jou
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def main() -> int:
increment(foo as int*) # same cast explicitly
printf("%d %d %d\n", foo[0], foo[1], foo[2]) # Output: 7 5 6

# mixed types, picks a type so that all members can implicitly convert to it
# corner case: byte* <--> void* can be converted both ways, use byte*
strings = ["hello", NULL, "world", NULL]
printf("%s %s\n", strings[0], strings[2]) # Output: hello world
# Output: strings[1] is NULL
Expand Down

0 comments on commit 4e3a005

Please sign in to comment.