Skip to content

Commit 70d6d7c

Browse files
killerswanmarijnh
authored andcommitted
---
yaml --- r: 11444 b: refs/heads/master c: 961b644 h: refs/heads/master v: v3
1 parent ffee069 commit 70d6d7c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: c3318f29fecca14100e5956a013ab50395b7ceda
2+
refs/heads/master: 961b6446b6123616b6f0b935813021e43da3ef18
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/src/libcore/str.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,7 +1192,7 @@ fn substr_len_chars(s: str, byte_start: uint, byte_len: uint) -> uint {
11921192
}
11931193

11941194
/*
1195-
Function: substr_len_bytes
1195+
Function: substr_len
11961196
11971197
As byte_len but for a substring
11981198
@@ -1210,7 +1210,7 @@ Safety note:
12101210
This function fails if `byte_offset` or `char_len` do not represent
12111211
valid positions in `s`
12121212
*/
1213-
fn substr_len_bytes(s: str, byte_offset: uint, char_len: uint) -> uint {
1213+
fn substr_len(s: str, byte_offset: uint, char_len: uint) -> uint {
12141214
let i = byte_offset;
12151215
let chars = 0u;
12161216
while chars < char_len {

0 commit comments

Comments
 (0)