Skip to content

Commit 32c480d

Browse files
author
Alexandros Tasos
committed
Renamed ClonableIterator to CloneableIterator
1 parent 00d87e0 commit 32c480d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/etc/vim/syntax/rust.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ syn keyword rustTrait Default
7878
syn keyword rustTrait Hash
7979
syn keyword rustTrait FromStr
8080
syn keyword rustTrait FromIterator Extendable
81-
syn keyword rustTrait Iterator DoubleEndedIterator RandomAccessIterator ClonableIterator
81+
syn keyword rustTrait Iterator DoubleEndedIterator RandomAccessIterator CloneableIterator
8282
syn keyword rustTrait OrdIterator MutableDoubleEndedIterator ExactSize
8383
syn keyword rustTrait Times
8484

src/libstd/iter.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -906,14 +906,14 @@ impl<A: Ord, T: Iterator<A>> OrdIterator<A> for T {
906906
}
907907
}
908908

909-
/// A trait for iterators that are clonable.
910-
pub trait ClonableIterator {
909+
/// A trait for iterators that are cloneable.
910+
pub trait CloneableIterator {
911911
/// Repeats an iterator endlessly
912912
///
913913
/// # Example
914914
///
915915
/// ```rust
916-
/// use std::iter::{ClonableIterator, count};
916+
/// use std::iter::{CloneableIterator, count};
917917
///
918918
/// let a = count(1,1).take(1);
919919
/// let mut cy = a.cycle();
@@ -923,7 +923,7 @@ pub trait ClonableIterator {
923923
fn cycle(self) -> Cycle<Self>;
924924
}
925925

926-
impl<A, T: Clone + Iterator<A>> ClonableIterator for T {
926+
impl<A, T: Clone + Iterator<A>> CloneableIterator for T {
927927
#[inline]
928928
fn cycle(self) -> Cycle<T> {
929929
Cycle{orig: self.clone(), iter: self}

src/libstd/prelude.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ pub use default::Default;
5555
pub use from_str::FromStr;
5656
pub use hash::Hash;
5757
pub use iter::{FromIterator, Extendable};
58-
pub use iter::{Iterator, DoubleEndedIterator, RandomAccessIterator, ClonableIterator};
58+
pub use iter::{Iterator, DoubleEndedIterator, RandomAccessIterator, CloneableIterator};
5959
pub use iter::{OrdIterator, MutableDoubleEndedIterator, ExactSize};
6060
pub use num::Times;
6161
pub use num::{Algebraic, Trigonometric, Exponential, Hyperbolic};

0 commit comments

Comments
 (0)