mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-08 05:38:19 +00:00
doc(c-api) Fix typos.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//! Unstable non-standard Wasmer-specific API that contains everything
|
//! Unstable non-standard Wasmer-specific API that contains everything
|
||||||
//! to create a the middleware metering API.
|
//! to create the middleware metering API.
|
||||||
//!
|
//!
|
||||||
//! The metering middleware is used for tracking how many operators
|
//! The metering middleware is used for tracking how many operators
|
||||||
//! are executed in total and putting a limit on the total number of
|
//! are executed in total and putting a limit on the total number of
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
//! // Create a new metering middleware, with our cost function.
|
//! // Create a new metering middleware, with our cost function.
|
||||||
//! wasmer_metering_t* metering = wasmer_metering_new(10, cost_function);
|
//! wasmer_metering_t* metering = wasmer_metering_new(10, cost_function);
|
||||||
//!
|
//!
|
||||||
//! // Consume `metering` to produce a generic `wasmer_middle_t` value.
|
//! // Consume `metering` to produce a generic `wasmer_middleware_t` value.
|
||||||
//! wasmer_middleware_t* middleware = wasmer_metering_as_middleware(metering);
|
//! wasmer_middleware_t* middleware = wasmer_metering_as_middleware(metering);
|
||||||
//!
|
//!
|
||||||
//! // Create a new configuration, and push the middleware in it.
|
//! // Create a new configuration, and push the middleware in it.
|
||||||
@@ -175,7 +175,7 @@ pub unsafe extern "C" fn wasmer_metering_points_delete(
|
|||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns the number of remaining points if any, otherwise returned
|
/// Returns the number of remaining points if any, otherwise returns
|
||||||
/// the given `exhausted` value if points are exhausted.
|
/// the given `exhausted` value if points are exhausted.
|
||||||
///
|
///
|
||||||
/// # Example
|
/// # Example
|
||||||
|
|||||||
Reference in New Issue
Block a user