Skip to content

Commit e88210d

Browse files
committed
---
yaml --- r: 139902 b: refs/heads/try2 c: 8ae6b33 h: refs/heads/master v: v3
1 parent f6f9bc7 commit e88210d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: d3a58f37979496efdf15bf016ebccc17b007a6cc
8+
refs/heads/try2: 8ae6b33ed0cf2b1793773f31b8f5249347ef0983
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/libcore/str.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1863,7 +1863,7 @@ pub fn char_range_at(s: &str, i: uint) -> CharRange {
18631863
return CharRange {ch: val as char, next: i};
18641864
}
18651865

1866-
/// Plucks the `n`th character from the beginning of a string
1866+
/// Plucks the character starting at the `i`th byte of a string
18671867
pub fn char_at(s: &str, i: uint) -> char {
18681868
return char_range_at(s, i).ch;
18691869
}
@@ -1874,11 +1874,11 @@ pub struct CharRange {
18741874
}
18751875

18761876
/**
1877-
* Given a byte position and a str, return the previous char and its position
1877+
* Given a byte position and a str, return the previous char and its position.
18781878
*
18791879
* This function can be used to iterate over a unicode string in reverse.
18801880
*
1881-
* returns 0 for next index if called on start index 0
1881+
* Returns 0 for next index if called on start index 0.
18821882
*/
18831883
pub fn char_range_at_reverse(ss: &str, start: uint) -> CharRange {
18841884
let mut prev = start;
@@ -1900,7 +1900,7 @@ pub fn char_range_at_reverse(ss: &str, start: uint) -> CharRange {
19001900
return CharRange {ch:ch, next:prev};
19011901
}
19021902

1903-
/// Plucks the `n`th character from the end of a string
1903+
/// Plucks the character ending at the `i`th byte of a string
19041904
pub fn char_at_reverse(s: &str, i: uint) -> char {
19051905
char_range_at_reverse(s, i).ch
19061906
}

0 commit comments

Comments
 (0)