diff options
| author | bors <bors@rust-lang.org> | 2013-11-03 17:31:20 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-11-03 17:31:20 -0800 |
| commit | 29359d0efa7314258e412f96875a723773784652 (patch) | |
| tree | 75569e78d73c2e401b084b06167fbd7ef041de90 /src/libstd | |
| parent | c4c2b38dae5d08d0eda6fbb8736f6295d9fdef9e (diff) | |
| parent | da43676e39b87c766c1041e50c206909bb05bfa6 (diff) | |
| download | rust-29359d0efa7314258e412f96875a723773784652.tar.gz rust-29359d0efa7314258e412f96875a723773784652.zip | |
auto merge of #10252 : huonw/rust/docs, r=alexcrichton
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/c_str.rs | 2 | ||||
| -rw-r--r-- | src/libstd/str.rs | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/libstd/c_str.rs b/src/libstd/c_str.rs index b2e68c8d20f..6166bbaaaa3 100644 --- a/src/libstd/c_str.rs +++ b/src/libstd/c_str.rs @@ -330,7 +330,7 @@ fn check_for_null(v: &[u8], buf: *mut libc::c_char) { /// External iterator for a CString's bytes. /// -/// Use with the `std::iterator` module. +/// Use with the `std::iter` module. pub struct CStringIterator<'self> { priv ptr: *libc::c_char, priv lifetime: &'self libc::c_char, // FIXME: #5922 diff --git a/src/libstd/str.rs b/src/libstd/str.rs index 053076c5d89..f376a30efa7 100644 --- a/src/libstd/str.rs +++ b/src/libstd/str.rs @@ -352,7 +352,7 @@ Section: Iterators */ /// External iterator for a string's characters. -/// Use with the `std::iterator` module. +/// Use with the `std::iter` module. #[deriving(Clone)] pub struct CharIterator<'self> { /// The slice remaining to be iterated @@ -397,7 +397,7 @@ impl<'self> DoubleEndedIterator<char> for CharIterator<'self> { } /// External iterator for a string's characters and their byte offsets. -/// Use with the `std::iterator` module. +/// Use with the `std::iter` module. #[deriving(Clone)] pub struct CharOffsetIterator<'self> { /// The original string to be iterated @@ -439,20 +439,20 @@ impl<'self> DoubleEndedIterator<(uint, char)> for CharOffsetIterator<'self> { } /// External iterator for a string's characters in reverse order. -/// Use with the `std::iterator` module. +/// Use with the `std::iter` module. pub type CharRevIterator<'self> = Invert<CharIterator<'self>>; /// External iterator for a string's characters and their byte offsets in reverse order. -/// Use with the `std::iterator` module. +/// Use with the `std::iter` module. pub type CharOffsetRevIterator<'self> = Invert<CharOffsetIterator<'self>>; /// External iterator for a string's bytes. -/// Use with the `std::iterator` module. +/// Use with the `std::iter` module. pub type ByteIterator<'self> = Map<'self, &'self u8, u8, vec::VecIterator<'self, u8>>; /// External iterator for a string's bytes in reverse order. -/// Use with the `std::iterator` module. +/// Use with the `std::iter` module. pub type ByteRevIterator<'self> = Invert<ByteIterator<'self>>; /// An iterator over the substrings of a string, separated by `sep`. @@ -682,7 +682,7 @@ enum NormalizationForm { } /// External iterator for a string's normalization's characters. -/// Use with the `std::iterator` module. +/// Use with the `std::iter` module. #[deriving(Clone)] struct NormalizationIterator<'self> { priv kind: NormalizationForm, |
