aboutsummaryrefslogtreecommitdiff
path: root/mingling_core/src/program/hook/hook_info.rs
diff options
context:
space:
mode:
Diffstat (limited to 'mingling_core/src/program/hook/hook_info.rs')
-rw-r--r--mingling_core/src/program/hook/hook_info.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/mingling_core/src/program/hook/hook_info.rs b/mingling_core/src/program/hook/hook_info.rs
index 768f652..25cf272 100644
--- a/mingling_core/src/program/hook/hook_info.rs
+++ b/mingling_core/src/program/hook/hook_info.rs
@@ -7,7 +7,10 @@ pub struct HookBeginInfo {}
/// Represents the data passed to `pre_dispatch` hook.
pub struct HookPreDispatchInfo<'a> {
/// Arguments entered by the user before dispatching
- pub arguments: &'a [String],
+ ///
+ /// The reference is mutable so the hook can rewrite the arguments before
+ /// they are matched against the registered dispatchers.
+ pub arguments: &'a mut Vec<String>,
}
/// Represents the data passed to `post_dispatch` hook.