Skip to content

Commit 3867a22

Browse files
authored
Merge pull request #132 from IanDarwin/main
Minor correction to call-c-from-java.yaml
2 parents 391f60b + 03b1d54 commit 3867a22

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)