Skip to content

Commit c99488b

Browse files
committed
Isolated bug, static vector seems to behave differently than fixed sized one
1 parent b9de2b5 commit c99488b

File tree

2 files changed

+1
-31
lines changed

2 files changed

+1
-31
lines changed

src/libcore/str.rs

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,6 @@ pub fn eachi_reverse(s: &str, it: &fn(uint, u8) -> bool) {
994994
}
995995
}
996996
997-
998997
/// Iterate over each char of a string, without allocating
999998
#[inline(always)]
1000999
pub fn each_char(s: &str, it: &fn(char) -> bool) {
@@ -1042,35 +1041,6 @@ pub fn each_chari_reverse(s: &str, it: &fn(uint, char) -> bool) {
10421041
}
10431042
}
10441043
1045-
/////////////////////////////////////////////////////////////////////////////////////////////////
1046-
// NOTE: Remove afterwards
1047-
/* /// Apply a function to each substring after splitting by character
1048-
pub fn split_char_each(ss: &str, cc: char, ff: &fn(v: &str) -> bool) {
1049-
vec::each(split_char(ss, cc), |s| ff(*s))
1050-
}
1051-
1052-
**
1053-
* Apply a function to each substring after splitting by character, up to
1054-
* `count` times
1055-
*
1056-
pub fn splitn_char_each(ss: &str, sep: char, count: uint,
1057-
ff: &fn(v: &str) -> bool) {
1058-
vec::each(splitn_char(ss, sep, count), |s| ff(*s))
1059-
}
1060-
1061-
/ Apply a function to each word
1062-
pub fn words_each(ss: &str, ff: &fn(v: &str) -> bool) {
1063-
vec::each(words(ss), |s| ff(*s))
1064-
}
1065-
1066-
**
1067-
* Apply a function to each line (by '\n')
1068-
*
1069-
pub fn lines_each(ss: &str, ff: &fn(v: &str) -> bool) {
1070-
vec::each(lines(ss), |s| ff(*s))
1071-
} */
1072-
/////////////////////////////////////////////////////////////////////////////////////////////////
1073-
10741044
/*
10751045
Section: Searching
10761046
*/

src/libstd/base64.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub trait ToBase64 {
1616
fn to_base64(&self) -> ~str;
1717
}
1818

19-
static CHARS: &'static[char] = &[
19+
static CHARS: [char * 64] = [
2020
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
2121
'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
2222
'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',

0 commit comments

Comments
 (0)