Replace std::num::One::one() by std::num::one() on examples.

This commit is contained in:
Sébastien Crozet 2013-10-18 11:59:32 +02:00
parent 351998a784
commit 4b03e2de95
1 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ pub fn identity() -> Identity {
/// Create a zero-valued value. /// Create a zero-valued value.
/// ///
/// This is the same as `std::num::Zero::zero()`. /// This is the same as `std::num::zero()`.
#[inline(always)] #[inline(always)]
pub fn zero<T: Zero>() -> T { pub fn zero<T: Zero>() -> T {
Zero::zero() Zero::zero()
@ -71,7 +71,7 @@ pub fn zero<T: Zero>() -> T {
/// Create a one-valued value. /// Create a one-valued value.
/// ///
/// This is the same as `std::num::One::one()`. /// This is the same as `std::num::one()`.
#[inline(always)] #[inline(always)]
pub fn one<T: One>() -> T { pub fn one<T: One>() -> T {
One::one() One::one()