Improve example

This commit is contained in:
Vinzent Steinberg 2017-05-05 13:10:25 +02:00
parent 70202725e2
commit a98e259f5f
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ use conv::ApproxFrom;
/// ```
/// use average::Average;
///
/// let a: Average = (1..6).map(|x| x as f64).collect();
/// let a: Average = (1..6).map(Into::into).collect();
/// assert_eq!(a.avg(), 3.0);
/// assert_eq!(a.var(), 2.5);
/// ```