docs: add the remaining missing doc comment, for the public wasm methods (#23863)

This commit is contained in:
Noa Santo 2025-03-05 13:23:35 +01:00 committed by GitHub
parent ae22bcfad9
commit e467747fe4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,6 +24,7 @@ fn find_wasm_validate() !string {
return error('could not find wasm-validate executable in thirdparty/ as well, try first `v run cmd/tools/install_wabt.vsh`')
}
// validate validates the given wasm code using `wasm-validate` executable.
pub fn validate(code []u8) ! {
println('validating using: ${wasm_validate_exe}')
outfile := os.join_path(os.temp_dir(), 'code_${pid}.wasm')