Fix typos (#935)
This commit is contained in:
parent
2f9b279428
commit
4e2e4eb5c0
@ -152,7 +152,7 @@ impl CommandConfigurator for StdCommandConfigurator {
|
|||||||
/// Construct a `CommandExecutor` by implementing [`CommandConfigurator`] for a type of your choice and calling [`CommandConfigurator::into_executor`] on it.
|
/// Construct a `CommandExecutor` by implementing [`CommandConfigurator`] for a type of your choice and calling [`CommandConfigurator::into_executor`] on it.
|
||||||
/// Instead, you can use [`CommandExecutor::builder()`] to construct a [`CommandExecutor`] backed by a [`StdCommandConfigurator`].
|
/// Instead, you can use [`CommandExecutor::builder()`] to construct a [`CommandExecutor`] backed by a [`StdCommandConfigurator`].
|
||||||
pub struct CommandExecutor<EM, OT, S, T, Z> {
|
pub struct CommandExecutor<EM, OT, S, T, Z> {
|
||||||
/// The wrapped comand configurer
|
/// The wrapped command configurer
|
||||||
configurer: T,
|
configurer: T,
|
||||||
/// The observers used by this executor
|
/// The observers used by this executor
|
||||||
observers: OT,
|
observers: OT,
|
||||||
@ -526,7 +526,7 @@ impl CommandExecutorBuilder {
|
|||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Builds the `ComandExecutor`
|
/// Builds the `CommandExecutor`
|
||||||
pub fn build<EM, OT, S, Z>(
|
pub fn build<EM, OT, S, Z>(
|
||||||
&self,
|
&self,
|
||||||
observers: OT,
|
observers: OT,
|
||||||
@ -537,7 +537,7 @@ impl CommandExecutorBuilder {
|
|||||||
{
|
{
|
||||||
let Some(program) = &self.program else {
|
let Some(program) = &self.program else {
|
||||||
return Err(Error::illegal_argument(
|
return Err(Error::illegal_argument(
|
||||||
"ComandExecutor::builder: no program set!",
|
"CommandExecutor::builder: no program set!",
|
||||||
));
|
));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user