Skip to content

Commit 03b1d54

Browse files
authored
Update call-c-from-java.yaml
IO.println is Java 25, but slug's "new" is 22+.
1 parent d3b4379 commit 03b1d54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/language/call-c-from-java.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ modernCode: |-
3838
var strlenSig = FunctionDescriptor.of(ValueLayout.JAVA_LONG, ValueLayout.ADDRESS);
3939
var strlenMethod = Linker.nativeLinker() .downcallHandle(foreignFuncAddr, strlenSig);
4040
var ret = (long) strlenMethod.invokeExact(arena.allocateFrom("Bambi"));
41-
IO.println("Return value " + ret); // 5
41+
System.out.println("Return value " + ret); // 5
4242
}
4343
}
4444

0 commit comments

Comments
 (0)