Skip to content

Commit 0d15bba

Browse files
YaSuenagvjovanov
authored andcommitted
Update parameter description for the result
1 parent bc1bfa9 commit 0d15bba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

substratevm/src/org.graalvm.polyglot.nativeapi/src/org/graalvm/polyglot/nativeapi/PolyglotNativeAPI.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ public static PolyglotStatus poly_context_close(PolyglotIsolateThread thread, Po
467467
" @param language_id the language identifier.",
468468
" @param name_utf8 given to the evaluate source code.",
469469
" @param source_utf8 the source code to be evaluated.",
470-
" @param result <code>poly_value</code> that is the result of the evaluation.",
470+
" @param result <code>poly_value</code> that is the result of the evaluation. You can pass <code>NULL</code> if you just want to evaluate the source and you can ignore the result.",
471471
" @return poly_ok if all works, poly_generic_error if there is a failure.",
472472
" @see org::graalvm::polyglot::Context::eval",
473473
" @since 19.0",
@@ -573,6 +573,7 @@ public static PolyglotStatus poly_value_can_execute(PolyglotIsolateThread thread
573573
" @param value to be executed.",
574574
" @param args array of poly_value.",
575575
" @param args_size length of the args array.",
576+
" @param result <code>poly_value</code> that is the result of the execution. You can pass <code>NULL</code> if you just want to execute the source and you can ignore the result.",
576577
" @return poly_ok if all works, poly_generic_error if the underlying context was closed, if a wrong ",
577578
" number of arguments was provided or one of the arguments was not applicable, if this value cannot be executed,",
578579
" and if a guest language error occurred during execution.",

0 commit comments

Comments
 (0)