Skip to content

Commit

Permalink
Rename list to be consistent with multiple_quoted
Browse files Browse the repository at this point in the history
  • Loading branch information
arqunis committed Nov 6, 2017
1 parent 84706f1 commit aad4744
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/framework/standard/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit aad4744

Please sign in to comment.