Skip to content

Commit eef0809

Browse files
committed
---
yaml --- r: 57021 b: refs/heads/try c: 10e6869 h: refs/heads/master i: 57019: 7e08eba v: v3
1 parent b33d51a commit eef0809

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
@@ -2,7 +2,7 @@
22
refs/heads/master: c081ffbd1e845687202a975ea2e698b623e5722f
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 79a2b2eafc3c766cecec8a5f76317693bae9ed17
5-
refs/heads/try: a2e535028471b715b5a3aaf7cbeb3e6d77a07af6
5+
refs/heads/try: 10e6869a54b3d9e703ca6bc29f49f522ee25d865
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/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)