iter: update testing imports

This commit is contained in:
Josh Stone 2016-03-25 16:39:26 -07:00
parent dac48aa4da
commit e672d006a4
1 changed files with 2 additions and 4 deletions

View File

@ -31,11 +31,9 @@ pub struct Range<A> {
/// # Example /// # Example
/// ///
/// ```rust /// ```rust
/// use num::iter;
///
/// let array = [0, 1, 2, 3, 4]; /// let array = [0, 1, 2, 3, 4];
/// ///
/// for i in iter::range(0, 5) { /// for i in num_iter::range(0, 5) {
/// println!("{}", i); /// println!("{}", i);
/// assert_eq!(i, array[i]); /// assert_eq!(i, array[i]);
/// } /// }
@ -265,7 +263,7 @@ mod tests {
use std::usize; use std::usize;
use std::ops::{Add, Mul}; use std::ops::{Add, Mul};
use std::cmp::Ordering; use std::cmp::Ordering;
use {One, ToPrimitive}; use traits::{One, ToPrimitive};
#[test] #[test]
fn test_range() { fn test_range() {