std: move str::as_buf into StrSlice

This commit is contained in:
Erick Tryzelaar 2013-07-10 17:33:11 -07:00
parent cfd89c4075
commit 9fdec67a67
6 changed files with 62 additions and 62 deletions

View file

@ -56,7 +56,7 @@ pub fn fail_bounds_check(file: *c_char, line: size_t,
index: size_t, len: size_t) {
let msg = fmt!("index out of bounds: the len is %d but the index is %d",
len as int, index as int);
do str::as_buf(msg) |p, _len| {
do msg.as_buf |p, _len| {
fail_(p as *c_char, file, line);
}
}