Skip to content

Commit

Permalink
Update docs on wat2wasm function
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark McCaskey committed Dec 1, 2020
1 parent 3e4b416 commit cd55746
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/c-api/src/wasm_c_api/wat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use super::types::wasm_byte_vec_t;
/// Parses in-memory bytes as either the WAT format, or a binary Wasm
/// module. This is wasmer-specific.
///
/// In case of failure, `wat2wasm` returns `NULL`.
/// In case of failure, `wat2wasm` sets the `out->data = NULL` and `out->size = 0`.
#[cfg(feature = "wat")]
#[no_mangle]
pub unsafe extern "C" fn wat2wasm(wat: &wasm_byte_vec_t, out: &mut wasm_byte_vec_t) {
Expand Down
2 changes: 1 addition & 1 deletion lib/c-api/wasmer_wasm.h
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ int wasmer_last_error_message(char *buffer, int length);
* Parses in-memory bytes as either the WAT format, or a binary Wasm
* module. This is wasmer-specific.
*
* In case of failure, `wat2wasm` fills the `out->data = NULL` and `out->size = 0`.
* In case of failure, `wat2wasm` sets the `out->data = NULL` and `out->size = 0`.
*/
void wat2wasm(const wasm_byte_vec_t *wat, wasm_byte_vec_t *out);

Expand Down

0 comments on commit cd55746

Please sign in to comment.