doc(runtime-c-api) Update the documentation of wasmer_module_deserialize.

This commit is contained in:
Ivan Enderlin
2019-03-15 12:18:52 +01:00
parent 082c93ceba
commit aac5c88b58
3 changed files with 3 additions and 3 deletions

View File

@ -620,7 +620,7 @@ pub unsafe extern "C" fn wasmer_module_serialize(
} }
} }
/// Deserialize the given Module. /// Deserialize the given bytes into a Module.
/// ///
/// Returns `wasmer_result_t::WASMER_OK` upon success. /// Returns `wasmer_result_t::WASMER_OK` upon success.
/// ///

View File

@ -489,7 +489,7 @@ uint32_t wasmer_memory_length(const wasmer_memory_t *memory);
wasmer_result_t wasmer_memory_new(wasmer_memory_t **memory, wasmer_limits_t limits); wasmer_result_t wasmer_memory_new(wasmer_memory_t **memory, wasmer_limits_t limits);
/** /**
* Deserialize the given Module. * Deserialize the given bytes into a Module.
* Returns `wasmer_result_t::WASMER_OK` upon success. * Returns `wasmer_result_t::WASMER_OK` upon success.
* Returns `wasmer_result_t::WASMER_ERROR` upon failure. Use `wasmer_last_error_length` * Returns `wasmer_result_t::WASMER_ERROR` upon failure. Use `wasmer_last_error_length`
* and `wasmer_last_error_message` to get an error message. * and `wasmer_last_error_message` to get an error message.

View File

@ -385,7 +385,7 @@ uint32_t wasmer_memory_length(const wasmer_memory_t *memory);
/// and `wasmer_last_error_message` to get an error message. /// and `wasmer_last_error_message` to get an error message.
wasmer_result_t wasmer_memory_new(wasmer_memory_t **memory, wasmer_limits_t limits); wasmer_result_t wasmer_memory_new(wasmer_memory_t **memory, wasmer_limits_t limits);
/// Deserialize the given Module. /// Deserialize the given bytes into a Module.
/// Returns `wasmer_result_t::WASMER_OK` upon success. /// Returns `wasmer_result_t::WASMER_OK` upon success.
/// Returns `wasmer_result_t::WASMER_ERROR` upon failure. Use `wasmer_last_error_length` /// Returns `wasmer_result_t::WASMER_ERROR` upon failure. Use `wasmer_last_error_length`
/// and `wasmer_last_error_message` to get an error message. /// and `wasmer_last_error_message` to get an error message.