diff options
author | SoniEx2 <endermoneymod@gmail.com> | 2021-11-29 20:52:26 -0300 |
---|---|---|
committer | SoniEx2 <endermoneymod@gmail.com> | 2021-11-29 20:52:26 -0300 |
commit | cd36070b3488ceec5d2ae14cc8fb7fee557b1b78 (patch) | |
tree | 4402a667b56717fca31f8b5ee6794297b5ebb3f3 /src | |
parent | 690adc6282f260a7d149920764c4799609ef02a5 (diff) |
Fix typo
Diffstat (limited to 'src')
-rw-r--r-- | src/args.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/args.rs b/src/args.rs index 638f90d..7e84b48 100644 --- a/src/args.rs +++ b/src/args.rs @@ -42,12 +42,12 @@ pub struct CommandContext<'a, T>(::std::marker::PhantomData<(&'a str, T)>); /// } /// } /// ``` -pub trait ArgumentType<'i, T: StringReader<'i>, S, E> { +pub trait ArgumentType<'i, R: StringReader<'i>, S, E> { /// The parsed type of the argument. type Result: Sized + 'static + ::std::any::Any; /// Parses an argument of this type, returning the parsed argument. - fn parse(&self, reader: &mut T) -> Result<Self::Result, E>; + fn parse(&self, reader: &mut R) -> Result<Self::Result, E>; /// Creates suggestions for this argument. // The hope here is that S is lightweight enough for one to clone into the |