diff options
| author | acdenisSK <[email protected]> | 2017-11-06 17:43:22 +0100 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-11-06 17:43:22 +0100 |
| commit | aad4744fb751e3e1147f085781323172755d4ef2 (patch) | |
| tree | fca1c574becb83a991390ff8234d92d4faee326d /src/framework | |
| parent | Actually, change `NeverFails` to a void enum (diff) | |
| download | serenity-aad4744fb751e3e1147f085781323172755d4ef2.tar.xz serenity-aad4744fb751e3e1147f085781323172755d4ef2.zip | |
Rename `list` to be consistent with `multiple_quoted`
Diffstat (limited to 'src/framework')
| -rw-r--r-- | src/framework/standard/args.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/framework/standard/args.rs b/src/framework/standard/args.rs index fab27a5..2a5c134 100644 --- a/src/framework/standard/args.rs +++ b/src/framework/standard/args.rs @@ -254,9 +254,9 @@ impl Args { /// /// let mut args = Args::new("42 69", vec![" ".to_owned()]); /// - /// assert_eq!(*args.list::<i32>().unwrap(), [42, 69]); + /// assert_eq!(*args.multiple::<i32>().unwrap(), [42, 69]); /// ``` - pub fn list<T: FromStr>(mut self) -> Result<Vec<T>, T::Err> + pub fn multiple<T: FromStr>(mut self) -> Result<Vec<T>, T::Err> where T::Err: StdError { Iter::<T>::new(&mut self).collect() } |