Use mean instead of average in docs

This commit is contained in:
Vinzent Steinberg 2017-05-29 00:42:33 +02:00
parent 0705c3f61f
commit c6f3bb6d99
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@
//!
//! let mut a: MeanWithError = (1..6).map(Into::into).collect();
//! a.add(42.);
//! println!("The average is {} ± {}.", a.mean(), a.error());
//! println!("The mean is {} ± {}.", a.mean(), a.error());
//! ```
#![no_std]

View File

@ -10,7 +10,7 @@
/// use average::Variance;
///
/// let a: Variance = (1..6).map(Into::into).collect();
/// println!("The average is {} ± {}.", a.mean(), a.error());
/// println!("The mean is {} ± {}.", a.mean(), a.error());
/// ```
#[derive(Debug, Clone)]
pub struct Variance {