Update tenses of doc comment summary lines (#4161)
This PR updates the tenses used by the summary line of doc comments to match the [Rust API documentation conventions](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#summary-sentence). Specifically: > The summary line should be written in third person singular present indicative form. Basically, this means write ‘Returns’ instead of ‘Return’. I'm sure there are plenty occurrences that I missed. Release Notes: - N/A
This commit is contained in:
parent
cb1b7915ee
commit
01f06f96a1
19 changed files with 75 additions and 73 deletions
|
@ -69,7 +69,7 @@ impl Default for Metering {
|
|||
}
|
||||
|
||||
/// This struct is used to build a new [`Plugin`], using the builder pattern.
|
||||
/// Create a new default plugin with `PluginBuilder::new_with_default_ctx`,
|
||||
/// Creates a new default plugin with `PluginBuilder::new_with_default_ctx`,
|
||||
/// and add host-side exported functions using `host_function` and `host_function_async`.
|
||||
/// Finalize the plugin by calling [`init`].
|
||||
pub struct PluginBuilder {
|
||||
|
@ -90,7 +90,7 @@ fn create_default_engine() -> Result<Engine, Error> {
|
|||
}
|
||||
|
||||
impl PluginBuilder {
|
||||
/// Create a new [`PluginBuilder`] with the given WASI context.
|
||||
/// Creates a new [`PluginBuilder`] with the given WASI context.
|
||||
/// Using the default context is a safe bet, see [`new_with_default_context`].
|
||||
/// This plugin will yield after a configurable amount of fuel is consumed.
|
||||
pub fn new(wasi_ctx: WasiCtx, metering: Metering) -> Result<Self, Error> {
|
||||
|
@ -105,7 +105,7 @@ impl PluginBuilder {
|
|||
})
|
||||
}
|
||||
|
||||
/// Create a new `PluginBuilder` with the default `WasiCtx` (see [`default_ctx`]).
|
||||
/// Creates a new `PluginBuilder` with the default `WasiCtx` (see [`default_ctx`]).
|
||||
/// This plugin will yield after a configurable amount of fuel is consumed.
|
||||
pub fn new_default() -> Result<Self, Error> {
|
||||
let default_ctx = WasiCtxBuilder::new()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue