diff options
| author | Donnie Bishop <donnie.a.bishop@gmail.com> | 2017-03-30 15:46:41 -0400 |
|---|---|---|
| committer | Donnie Bishop <donnie.a.bishop@gmail.com> | 2017-03-30 15:46:41 -0400 |
| commit | 41e04985867e04b2be7b7fbd90864e5d9b3a276f (patch) | |
| tree | 29d0b8aa6033ed9f4fe14f4a5093f532a004aec4 /src | |
| parent | 0f5cf54246f7a68a8fc18ee41dffc7cdf866e19c (diff) | |
Modify CharIndices' description
Diffstat (limited to 'src')
| -rw-r--r-- | src/libcore/str/mod.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs index 4556d41dd0a..4720c965c57 100644 --- a/src/libcore/str/mod.rs +++ b/src/libcore/str/mod.rs @@ -553,7 +553,15 @@ impl<'a> Chars<'a> { } } -/// Iterator for a string's characters and their byte offsets. +/// An iterator over the [`char`]s of a string slice, and their positions. +/// +/// [`char`]: ../../std/primitive.char.html +/// +/// This struct is created by the [`char_indices()`] method on [`str`]. +/// See its documentation for more. +/// +/// [`char_indices()`]: ../../std/primitive.str.html#method.char_indices +/// [`str`]: ../../std/primitive.str.html #[derive(Clone, Debug)] #[stable(feature = "rust1", since = "1.0.0")] pub struct CharIndices<'a> { |
